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

Side by Side Diff: chrome/browser/ui/webui/flags_ui.h

Issue 12330137: Allow normal users to change per session flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adressed comments. Created 7 years, 9 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
« no previous file with comments | « chrome/browser/resources/flags_warning.html ('k') | chrome/browser/ui/webui/flags_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FLAGS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_
7 7
8 #include "base/memory/weak_ptr.h"
8 #include "content/public/browser/web_ui_controller.h" 9 #include "content/public/browser/web_ui_controller.h"
9 #include "ui/base/layout.h" 10 #include "ui/base/layout.h"
10 11
12 #ifdef OS_CHROMEOS
13 #include "chrome/browser/chromeos/settings/device_settings_service.h"
14 #endif
15
11 class PrefRegistrySimple; 16 class PrefRegistrySimple;
17 class PrefRegistrySyncable;
18 class Profile;
12 19
13 namespace base { 20 namespace base {
14 class RefCountedMemory; 21 class RefCountedMemory;
15 } 22 }
16 23
17 class FlagsUI : public content::WebUIController { 24 class FlagsUI : public content::WebUIController {
18 public: 25 public:
19 explicit FlagsUI(content::WebUI* web_ui); 26 explicit FlagsUI(content::WebUI* web_ui);
27 virtual ~FlagsUI();
20 28
21 static base::RefCountedMemory* GetFaviconResourceBytes( 29 static base::RefCountedMemory* GetFaviconResourceBytes(
22 ui::ScaleFactor scale_factor); 30 ui::ScaleFactor scale_factor);
23 static void RegisterPrefs(PrefRegistrySimple* registry); 31 static void RegisterPrefs(PrefRegistrySimple* registry);
32 #ifdef OS_CHROMEOS
33 static void RegisterUserPrefs(PrefRegistrySyncable* registry);
34 #endif
24 35
25 private: 36 private:
37 #ifdef OS_CHROMEOS
38 void FinishInitialization(
Nico 2013/03/05 15:11:08 Needs a comment about what this does and why it's
pastarmovj 2013/03/05 15:23:13 Done.
39 Profile* profile,
40 chromeos::DeviceSettingsService::OwnershipStatus status,
41 bool current_user_is_owner);
42 #endif
43 base::WeakPtrFactory<FlagsUI> weak_factory_;
44
26 DISALLOW_COPY_AND_ASSIGN(FlagsUI); 45 DISALLOW_COPY_AND_ASSIGN(FlagsUI);
27 }; 46 };
28 47
29 #endif // CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ 48 #endif // CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/flags_warning.html ('k') | chrome/browser/ui/webui/flags_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698