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

Side by Side Diff: chrome/browser/extensions/extension_preference_api.cc

Issue 10141008: Make managedMode extension API component-only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/extensions/extension_preference_api.h" 5 #include "chrome/browser/extensions/extension_preference_api.h"
6 6
7 #include <map> 7 #include <map>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 { "hyperlinkAuditingEnabled", 59 { "hyperlinkAuditingEnabled",
60 prefs::kEnableHyperlinkAuditing, 60 prefs::kEnableHyperlinkAuditing,
61 ExtensionAPIPermission::kPrivacy 61 ExtensionAPIPermission::kPrivacy
62 }, 62 },
63 { "instantEnabled", 63 { "instantEnabled",
64 prefs::kInstantEnabled, 64 prefs::kInstantEnabled,
65 ExtensionAPIPermission::kPrivacy 65 ExtensionAPIPermission::kPrivacy
66 }, 66 },
67 { "managedModeEnabled", 67 { "managedModeEnabled",
68 prefs::kInManagedMode, 68 prefs::kInManagedMode,
69 ExtensionAPIPermission::kManagedMode 69 ExtensionAPIPermission::kManagedModePrivate
70 }, 70 },
71 { "networkPredictionEnabled", 71 { "networkPredictionEnabled",
72 prefs::kNetworkPredictionEnabled, 72 prefs::kNetworkPredictionEnabled,
73 ExtensionAPIPermission::kPrivacy 73 ExtensionAPIPermission::kPrivacy
74 }, 74 },
75 { "proxy", 75 { "proxy",
76 prefs::kProxy, 76 prefs::kProxy,
77 ExtensionAPIPermission::kProxy 77 ExtensionAPIPermission::kProxy
78 }, 78 },
79 { "referrersEnabled", 79 { "referrersEnabled",
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 } 470 }
471 471
472 std::string browser_pref; 472 std::string browser_pref;
473 if (!ValidateBrowserPref(pref_key, &browser_pref)) 473 if (!ValidateBrowserPref(pref_key, &browser_pref))
474 return false; 474 return false;
475 475
476 ExtensionPrefs* prefs = profile_->GetExtensionService()->extension_prefs(); 476 ExtensionPrefs* prefs = profile_->GetExtensionService()->extension_prefs();
477 prefs->RemoveExtensionControlledPref(extension_id(), browser_pref, scope); 477 prefs->RemoveExtensionControlledPref(extension_id(), browser_pref, scope);
478 return true; 478 return true;
479 } 479 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_managed_mode_apitest.cc ('k') | chrome/common/extensions/api/_permission_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698