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

Unified Diff: chrome/browser/ui/webui/options/create_profile_handler.cc

Issue 1716163005: MD user manager (C++ for create profile flow) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/create_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options/create_profile_handler.cc b/chrome/browser/ui/webui/options/create_profile_handler.cc
index 6036836a234c394da1362e7a6a68b2525ecbb9ea..6c74891513c9f67b8ab383ab3acdfe5ce9bb45b3 100644
--- a/chrome/browser/ui/webui/options/create_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/create_profile_handler.cc
@@ -22,7 +22,7 @@
#include "chrome/browser/profiles/profile_metrics.h"
#include "chrome/browser/profiles/profiles_state.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
-#include "chrome/browser/ui/webui/options/options_handlers_helper.h"
+#include "chrome/browser/ui/webui/profile_helper.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
#include "components/browser_sync/browser/profile_sync_service.h"
@@ -217,8 +217,7 @@ void CreateProfileHandler::CreateShortcutAndShowSuccess(bool create_shortcut,
if (should_open_new_window) {
// Opening the new window must be the last action, after all callbacks
// have been run, to give them a chance to initialize the profile.
- helper::OpenNewWindowForProfile(profile,
- Profile::CREATE_STATUS_INITIALIZED);
+ webui::OpenNewWindowForProfile(profile, Profile::CREATE_STATUS_INITIALIZED);
}
profile_creation_type_ = NO_CREATION_IN_PROGRESS;
}
@@ -234,7 +233,7 @@ void CreateProfileHandler::ShowProfileCreationError(
base::StringValue(error));
// The ProfileManager calls us back with a NULL profile in some cases.
if (profile)
- helper::DeleteProfileAtPath(profile->GetPath(), web_ui());
+ webui::DeleteProfileAtPath(profile->GetPath(), web_ui());
}
void CreateProfileHandler::RecordProfileCreationMetrics(
@@ -375,7 +374,7 @@ void CreateProfileHandler::CancelProfileRegistration(bool user_initiated) {
// Cancelling registration means the callback passed into
// RegisterAndInitSync() won't be called, so the cleanup must be done here.
profile_path_being_created_.clear();
- helper::DeleteProfileAtPath(new_profile->GetPath(), web_ui());
+ webui::DeleteProfileAtPath(new_profile->GetPath(), web_ui());
}
void CreateProfileHandler::RegisterSupervisedUser(
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.cc ('k') | chrome/browser/ui/webui/options/manage_profile_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698