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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1307093004: Remove references to IsNewAvatarMenu since the flag was removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert FRAME_AVATAR_BUTTON changes. Created 5 years, 3 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/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index f23f18542f51ede9de4c8bd49ec8c346e414c4a1..0e10280a9a1066c49f12dae1006f08739174576a 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -378,12 +378,6 @@ Profile* CreatePrimaryProfile(const content::MainFunctionParams& parameters,
base::FilePath profile_path =
GetStartupProfilePath(user_data_dir, parsed_command_line);
- // Without NewAvatarMenu, replace guest with any existing profile.
- if (!switches::IsNewAvatarMenu() &&
- profile_path == ProfileManager::GetGuestProfilePath()) {
- profile_path = g_browser_process->profile_manager()->GetProfileInfoCache().
- GetPathOfProfileAtIndex(0);
- }
profile = g_browser_process->profile_manager()->GetProfile(
profile_path);

Powered by Google App Engine
This is Rietveld 408576698