Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/website/KeygenInfo.java

Issue 1432573002: Adding <keygen> Content Setting (Android UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keygen_ui
Patch Set: Trying tested code. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.preferences.website; 5 package org.chromium.chrome.browser.preferences.website;
6 6
7 /** 7 /**
8 * Cookie information for a given origin. 8 * Keygen information for a given origin.
9 */ 9 */
10 public class CookieInfo extends PermissionInfo { 10 public class KeygenInfo extends PermissionInfo {
11 public CookieInfo(String origin, String embedder, boolean isIncognito) { 11 public KeygenInfo(String origin, String embedder, boolean isIncognito) {
12 super(origin, embedder, isIncognito); 12 super(origin, embedder, isIncognito);
13 } 13 }
14 14
15 protected int getNativePreferenceValue(String origin, String embedder, boole an isIncognito) { 15 protected int getNativePreferenceValue(String origin, String embedder, boole an isIncognito) {
16 return WebsitePreferenceBridge.nativeGetCookieSettingForOrigin( 16 return WebsitePreferenceBridge.nativeGetKeygenSettingForOrigin(
17 origin, embedder, isIncognito); 17 origin, embedder, isIncognito);
18 } 18 }
19 19
20 protected void setNativePreferenceValue( 20 protected void setNativePreferenceValue(
21 String origin, String embedder, ContentSetting value, boolean isInco gnito) { 21 String origin, String embedder, ContentSetting value, boolean isInco gnito) {
22 WebsitePreferenceBridge.nativeSetCookieSettingForOrigin( 22 WebsitePreferenceBridge.nativeSetKeygenSettingForOrigin(
23 origin, embedder, value.toInt(), isIncognito); 23 origin, embedder, value.toInt(), isIncognito);
24 } 24 }
25 } 25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698