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

Unified Diff: chrome/browser/extensions/extension_preference_api.cc

Issue 8662008: Implement chrome.systemPrivate.getIncognitoModeAvailability extension API function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged with ToT Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_preference_api.cc
diff --git a/chrome/browser/extensions/extension_preference_api.cc b/chrome/browser/extensions/extension_preference_api.cc
index 871d99bcac5fca3cc678cfa9226c7510fe0f745a..31b3161e3994a7c78dba071d3978b379ae52e9ed 100644
--- a/chrome/browser/extensions/extension_preference_api.cc
+++ b/chrome/browser/extensions/extension_preference_api.cc
@@ -29,8 +29,15 @@
namespace {
struct PrefMappingEntry {
+ // Name of the preference referenced by extension_api.json.
const char* extension_pref;
+
+ // Name of the preference in the PrefStores.
const char* browser_pref;
+
+ // Permission required to access this preference.
+ // Use ExtensionAPIPermission::kInvalid for |permission| to express that no
+ // permission is necessary.
ExtensionAPIPermission::ID permission;
};
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | chrome/browser/extensions/system/system_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698