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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.h

Issue 167723002: Don't display multi-profile under Guest user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 10 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_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // whether Chrome will auto-launch at login. 130 // whether Chrome will auto-launch at login.
131 void CheckAutoLaunchCallback(bool is_in_auto_launch_group, 131 void CheckAutoLaunchCallback(bool is_in_auto_launch_group,
132 bool will_launch_at_login); 132 bool will_launch_at_login);
133 133
134 // Returns the string ID for the given default browser state. 134 // Returns the string ID for the given default browser state.
135 int StatusStringIdForState(ShellIntegration::DefaultWebClientState state); 135 int StatusStringIdForState(ShellIntegration::DefaultWebClientState state);
136 136
137 // Returns if the "make Chrome default browser" button should be shown. 137 // Returns if the "make Chrome default browser" button should be shown.
138 bool ShouldShowSetDefaultBrowser(); 138 bool ShouldShowSetDefaultBrowser();
139 139
140 // Returns if profiles list should be shown on settings page.
141 bool ShouldShowMultiProfilesUserList();
142
140 // Gets the current default browser state, and asynchronously reports it to 143 // Gets the current default browser state, and asynchronously reports it to
141 // the WebUI page. 144 // the WebUI page.
142 void UpdateDefaultBrowserState(); 145 void UpdateDefaultBrowserState();
143 146
144 // Updates the UI with the given state for the default browser. 147 // Updates the UI with the given state for the default browser.
145 void SetDefaultBrowserUIString(int status_string_id); 148 void SetDefaultBrowserUIString(int status_string_id);
146 149
147 // Loads the possible default search engine list and reports it to the WebUI. 150 // Loads the possible default search engine list and reports it to the WebUI.
148 void AddTemplateUrlServiceObserver(); 151 void AddTemplateUrlServiceObserver();
149 152
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 339
337 // Used to get WeakPtr to self for use on the UI thread. 340 // Used to get WeakPtr to self for use on the UI thread.
338 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; 341 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_;
339 342
340 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); 343 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler);
341 }; 344 };
342 345
343 } // namespace options 346 } // namespace options
344 347
345 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 348 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698