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

Unified 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: Fix Mac browser test 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/browser_options_handler.h
===================================================================
--- chrome/browser/ui/webui/options/browser_options_handler.h (revision 202001)
+++ chrome/browser/ui/webui/options/browser_options_handler.h (working copy)
@@ -5,12 +5,15 @@
#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
+#include <vector>
+
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/prefs/pref_member.h"
#include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/search_engines/template_url_service_observer.h"
#include "chrome/browser/shell_integration.h"
#include "chrome/browser/sync/profile_sync_service_observer.h"
@@ -150,6 +153,15 @@
// 3: a flag stating whether the user should be managed (optional, boolean)
void CreateProfile(const base::ListValue* args);
+ // Handles final tasks when a new profile has been created, running any queued
+ // callbacks and updating the UI.
+ void OnProfileCreated(
+ chrome::HostDesktopType desktop_type,
+ bool is_managed,
+ const std::vector<ProfileManager::CreateCallback>& callbacks,
+ Profile* profile,
+ Profile::CreateStatus status);
+
void ObserveThemeChanged();
void ThemesReset(const base::ListValue* args);
#if defined(TOOLKIT_GTK)

Powered by Google App Engine
This is Rietveld 408576698