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

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

Issue 10542023: Disable modifying extensions when in managed mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Improve/fix InitImpl() Created 8 years, 6 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 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 // We want to register for notifications only after we've responded at least 210 // We want to register for notifications only after we've responded at least
211 // once to the page, otherwise we'd be calling JavaScript functions on objects 211 // once to the page, otherwise we'd be calling JavaScript functions on objects
212 // that don't exist yet when notifications come in. This variable makes sure 212 // that don't exist yet when notifications come in. This variable makes sure
213 // we do so only once. 213 // we do so only once.
214 bool registered_for_notifications_; 214 bool registered_for_notifications_;
215 215
216 content::NotificationRegistrar registrar_; 216 content::NotificationRegistrar registrar_;
217 217
218 PrefChangeRegistrar pref_registrar_; 218 PrefChangeRegistrar pref_registrar_;
219 PrefChangeRegistrar local_state_pref_registrar_;
219 220
220 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); 221 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler);
221 }; 222 };
222 223
223 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ 224 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698