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

Unified Diff: trunk/src/chrome/browser/profiles/profile_window.cc

Issue 234583008: Revert 263262 "Newly created profiles should have the grey silho..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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: trunk/src/chrome/browser/profiles/profile_window.cc
===================================================================
--- trunk/src/chrome/browser/profiles/profile_window.cc (revision 263283)
+++ trunk/src/chrome/browser/profiles/profile_window.cc (working copy)
@@ -8,10 +8,8 @@
#include "base/files/file_path.h"
#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
-#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_avatar_icon_util.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_dialogs.h"
@@ -222,14 +220,9 @@
void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type,
ProfileSwitchingDoneCallback callback,
ProfileMetrics::ProfileAdd metric) {
- ProfileInfoCache& cache =
- g_browser_process->profile_manager()->GetProfileInfoCache();
-
- int placeholder_avatar_index = profiles::GetPlaceholderAvatarIndex();
ProfileManager::CreateMultiProfileAsync(
- cache.ChooseNameForNewProfile(placeholder_avatar_index),
- base::UTF8ToUTF16(profiles::GetDefaultAvatarIconUrl(
- placeholder_avatar_index)),
+ base::string16(),
+ base::string16(),
base::Bind(&OpenBrowserWindowForProfile,
callback,
true,

Powered by Google App Engine
This is Rietveld 408576698