This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding <keygen> Content Setting (Android UI)
This adds Android UI to allow the user to change the Content Setting to block/allow keygen usage on a per-site basis. To trigger the exception, we also create a Content Exception on any site that uses a <keygen> element. BUG=514767 Review URL: https://codereview.chromium.org/1432573002 Cr-Commit-Position: refs/heads/master@{#370416}
- Loading branch information
svaldez
authored and
Commit bot
committed
Jan 20, 2016
1 parent
a72c69a
commit 34a7682
Showing
11 changed files
with
257 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
chrome/android/java/src/org/chromium/chrome/browser/preferences/website/KeygenInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
package org.chromium.chrome.browser.preferences.website; | ||
|
||
/** | ||
* Keygen information for a given origin. | ||
*/ | ||
public class KeygenInfo extends PermissionInfo { | ||
public KeygenInfo(String origin, String embedder, boolean isIncognito) { | ||
super(origin, embedder, isIncognito); | ||
} | ||
|
||
protected int getNativePreferenceValue(String origin, String embedder, boolean isIncognito) { | ||
return WebsitePreferenceBridge.nativeGetKeygenSettingForOrigin( | ||
origin, embedder, isIncognito); | ||
} | ||
|
||
protected void setNativePreferenceValue( | ||
String origin, String embedder, ContentSetting value, boolean isIncognito) { | ||
WebsitePreferenceBridge.nativeSetKeygenSettingForOrigin( | ||
origin, embedder, value.toInt(), isIncognito); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.