| 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..b67175f647cd528fe04a7f6c1aa6f2d0b5c70ae0 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,14 @@ void LoginUtilsImpl::DoBrowserLaunchOnLocaleLoadedImpl(
|
| first_run,
|
| &return_code);
|
|
|
| + // If the current user is a new regular user (not including
|
| + // multi-profile cases) enable surprise me wallpaper by default.
|
| + if (UserManager::Get()->IsCurrentUserNew() &&
|
| + UserManager::Get()->IsLoggedInAsRegularUser() &&
|
| + UserManager::Get()->GetLoggedInUsers().size() == 1) {
|
| + WallpaperManager::Get()->EnableSurpriseMe();
|
| + }
|
| +
|
| // Triggers app launcher start page service to load start page web contents.
|
| app_list::StartPageService::Get(profile);
|
|
|
|
|