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

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_settings_handler.cc

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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/ui/webui/extensions/extension_settings_handler.h" 5 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 : extension_service_(service), 116 : extension_service_(service),
117 management_policy_(policy), 117 management_policy_(policy),
118 ignore_notifications_(false), 118 ignore_notifications_(false),
119 deleting_rvh_(NULL), 119 deleting_rvh_(NULL),
120 registered_for_notifications_(false), 120 registered_for_notifications_(false),
121 warning_service_observer_(this) { 121 warning_service_observer_(this) {
122 } 122 }
123 123
124 // static 124 // static
125 void ExtensionSettingsHandler::RegisterUserPrefs( 125 void ExtensionSettingsHandler::RegisterUserPrefs(
126 PrefRegistrySyncable* registry) { 126 user_prefs::PrefRegistrySyncable* registry) {
127 registry->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, 127 registry->RegisterBooleanPref(
128 false, 128 prefs::kExtensionsUIDeveloperMode,
129 PrefRegistrySyncable::SYNCABLE_PREF); 129 false,
130 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
130 } 131 }
131 132
132 DictionaryValue* ExtensionSettingsHandler::CreateExtensionDetailValue( 133 DictionaryValue* ExtensionSettingsHandler::CreateExtensionDetailValue(
133 const Extension* extension, 134 const Extension* extension,
134 const std::vector<ExtensionPage>& pages, 135 const std::vector<ExtensionPage>& pages,
135 const extensions::ExtensionWarningService* warning_service) { 136 const extensions::ExtensionWarningService* warning_service) {
136 DictionaryValue* extension_data = new DictionaryValue(); 137 DictionaryValue* extension_data = new DictionaryValue();
137 bool enabled = extension_service_->IsExtensionEnabled(extension->id()); 138 bool enabled = extension_service_->IsExtensionEnabled(extension->id());
138 extension->GetBasicInfo(enabled, extension_data); 139 extension->GetBasicInfo(enabled, extension_data);
139 140
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 std::vector<std::string> requirement_errors) { 1096 std::vector<std::string> requirement_errors) {
1096 if (requirement_errors.empty()) { 1097 if (requirement_errors.empty()) {
1097 extension_service_->EnableExtension(extension_id); 1098 extension_service_->EnableExtension(extension_id);
1098 } else { 1099 } else {
1099 ExtensionErrorReporter::GetInstance()->ReportError( 1100 ExtensionErrorReporter::GetInstance()->ReportError(
1100 UTF8ToUTF16(JoinString(requirement_errors, ' ')), 1101 UTF8ToUTF16(JoinString(requirement_errors, ' ')),
1101 true /* be noisy */); 1102 true /* be noisy */);
1102 } 1103 }
1103 requirements_checker_.reset(); 1104 requirements_checker_.reset();
1104 } 1105 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.h ('k') | chrome/browser/ui/webui/flags_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698