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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator.cc

Issue 2762173003: Remove IsNewProfileManagement and EnableNewProfileManagementForTesting (Closed)
Patch Set: Fix compile (add back an include) Created 3 years, 9 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/startup/startup_browser_creator.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc
index 0efc97a349d8a42b2d2ff9de13beeb57e6da40d6..3e48a63df9c8b7b5e2fe583441020df022c66465 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -71,7 +71,6 @@
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/search_engines/util.h"
-#include "components/signin/core/common/profile_management_switches.h"
#include "components/url_formatter/url_fixer.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_security_policy.h"
@@ -964,8 +963,7 @@ Profile* GetStartupProfile(const base::FilePath& user_data_dir,
auto* storage = &profile_manager->GetProfileAttributesStorage();
ProfileAttributesEntry* entry;
bool has_entry = storage->GetProfileAttributesWithPath(profile_path, &entry);
- if (has_entry && (!switches::IsNewProfileManagement() ||
- !entry->IsSigninRequired() || !profile)) {
+ if (has_entry && (!entry->IsSigninRequired() || !profile)) {
return profile;
}

Powered by Google App Engine
This is Rietveld 408576698