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

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

Issue 15734006: Restructure user-creation flow and surface errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Removed log; patch for commit. Created 7 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_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>
9
8 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
11 #include "base/prefs/pref_member.h" 13 #include "base/prefs/pref_member.h"
12 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" 14 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h"
13 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/browser/search_engines/template_url_service_observer.h" 17 #include "chrome/browser/search_engines/template_url_service_observer.h"
15 #include "chrome/browser/shell_integration.h" 18 #include "chrome/browser/shell_integration.h"
16 #include "chrome/browser/sync/profile_sync_service_observer.h" 19 #include "chrome/browser/sync/profile_sync_service_observer.h"
17 #include "chrome/browser/ui/webui/options/options_ui.h" 20 #include "chrome/browser/ui/webui/options/options_ui.h"
18 #include "ui/base/models/table_model_observer.h" 21 #include "ui/base/models/table_model_observer.h"
19 #include "ui/shell_dialogs/select_file_dialog.h" 22 #include "ui/shell_dialogs/select_file_dialog.h"
20 23
21 #if defined(OS_CHROMEOS) 24 #if defined(OS_CHROMEOS)
22 #include "chrome/browser/chromeos/system/pointer_device_observer.h" 25 #include "chrome/browser/chromeos/system/pointer_device_observer.h"
23 #else 26 #else
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 146
144 // Asynchronously opens a new browser window to create a new profile. 147 // Asynchronously opens a new browser window to create a new profile.
145 // The arguments are as follows: 148 // The arguments are as follows:
146 // 0: name (string) 149 // 0: name (string)
147 // 1: icon (string) 150 // 1: icon (string)
148 // 2: a flag stating whether we should create a profile desktop shortcut 151 // 2: a flag stating whether we should create a profile desktop shortcut
149 // (optional, boolean) 152 // (optional, boolean)
150 // 3: a flag stating whether the user should be managed (optional, boolean) 153 // 3: a flag stating whether the user should be managed (optional, boolean)
151 void CreateProfile(const base::ListValue* args); 154 void CreateProfile(const base::ListValue* args);
152 155
156 // Handles final tasks when a new profile has been created, running any queued
157 // callbacks and updating the UI.
158 void OnProfileCreated(
159 chrome::HostDesktopType desktop_type,
160 bool is_managed,
161 const std::vector<ProfileManager::CreateCallback>& callbacks,
162 Profile* profile,
163 Profile::CreateStatus status);
164
153 void ObserveThemeChanged(); 165 void ObserveThemeChanged();
154 void ThemesReset(const base::ListValue* args); 166 void ThemesReset(const base::ListValue* args);
155 #if defined(TOOLKIT_GTK) 167 #if defined(TOOLKIT_GTK)
156 void ThemesSetGTK(const base::ListValue* args); 168 void ThemesSetGTK(const base::ListValue* args);
157 #endif 169 #endif
158 170
159 #if defined(OS_CHROMEOS) 171 #if defined(OS_CHROMEOS)
160 void UpdateAccountPicture(); 172 void UpdateAccountPicture();
161 #endif 173 #endif
162 174
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 DoublePrefMember default_zoom_level_; 309 DoublePrefMember default_zoom_level_;
298 310
299 PrefChangeRegistrar profile_pref_registrar_; 311 PrefChangeRegistrar profile_pref_registrar_;
300 312
301 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); 313 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler);
302 }; 314 };
303 315
304 } // namespace options 316 } // namespace options
305 317
306 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 318 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_sync_starter.cc ('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