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

Unified Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 162393002: Enable surprise me wallpaper for new profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: + multi user check 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wallpaper_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/login_utils.cc
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
index 7800adaec4210045e9a9c5da0a63d19d3bee8aa6..511caa66ef2f439cd0088e02ea00a26f77ee6b58 100644
--- a/chrome/browser/chromeos/login/login_utils.cc
+++ b/chrome/browser/chromeos/login/login_utils.cc
@@ -51,6 +51,7 @@
#include "chrome/browser/chromeos/login/supervised_user_manager.h"
#include "chrome/browser/chromeos/login/user.h"
#include "chrome/browser/chromeos/login/user_manager.h"
+#include "chrome/browser/chromeos/login/wallpaper_manager.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/first_run/first_run.h"
@@ -348,6 +349,12 @@ void LoginUtilsImpl::DoBrowserLaunchOnLocaleLoadedImpl(
first_run,
&return_code);
+ if (UserManager::Get()->IsCurrentUserNew() &&
+ UserManager::Get()->IsLoggedInAsRegularUser() &&
bshe 2014/04/09 14:32:15 Do you mind to add a short comment about why GetLo
Harry McCleave 2014/04/10 02:42:29 Done.
+ UserManager::Get()->GetLoggedInUsers().size() == 1) {
bshe 2014/04/09 14:32:15 nit: indent is off
Harry McCleave 2014/04/10 02:42:29 Done.
+ WallpaperManager::Get()->EnableSurpriseMe();
+ }
+
// Triggers app launcher start page service to load start page web contents.
app_list::StartPageService::Get(profile);
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wallpaper_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698