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

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

Issue 18615010: Refactor utility methods out of the ProfileManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 5 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.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index f2073741fd7c19e50aba6b66407c54f06d199184..acb3c7eaef6464be2e4d4c3981b7fa846aba3c0a 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -36,6 +36,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_info_util.h"
+#include "chrome/browser/profiles/profile_manager_util.h"
#include "chrome/browser/profiles/profile_metrics.h"
#include "chrome/browser/profiles/profile_shortcut_manager.h"
#include "chrome/browser/search/search.h"
@@ -132,7 +133,7 @@ bool ShouldShowMultiProfilesUserList(chrome::HostDesktopType desktop_type) {
#else
if (desktop_type != chrome::HOST_DESKTOP_TYPE_NATIVE)
return false;
- return ProfileManager::IsMultipleProfilesEnabled();
+ return profiles::IsMultipleProfilesEnabled();
#endif
}
@@ -161,7 +162,7 @@ void OpenNewWindowForProfile(
if (status != Profile::CREATE_STATUS_INITIALIZED)
return;
- ProfileManager::FindOrCreateNewWindowForProfile(
+ profiles::FindOrCreateNewWindowForProfile(
profile,
chrome::startup::IS_PROCESS_STARTUP,
chrome::startup::IS_FIRST_RUN,
@@ -1091,7 +1092,7 @@ void BrowserOptionsHandler::CreateProfile(const ListValue* args) {
return;
#endif
- if (!ProfileManager::IsMultipleProfilesEnabled())
+ if (!profiles::IsMultipleProfilesEnabled())
return;
DCHECK(profile_path_being_created_.empty());
@@ -1245,7 +1246,7 @@ void BrowserOptionsHandler::DeleteProfileAtPath(base::FilePath file_path) {
return;
#endif
- if (!ProfileManager::IsMultipleProfilesEnabled())
+ if (!profiles::IsMultipleProfilesEnabled())
return;
ProfileMetrics::LogProfileDeleteUser(ProfileMetrics::PROFILE_DELETED);

Powered by Google App Engine
This is Rietveld 408576698