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

Side by Side Diff: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" 5 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <numeric> 8 #include <numeric>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "ash/ash_constants.h" 12 #include "ash/ash_constants.h"
13 #include "ash/ash_switches.h" 13 #include "ash/ash_switches.h"
14 #include "ash/shell.h" 14 #include "ash/shell.h"
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/files/file_enumerator.h" 17 #include "base/files/file_enumerator.h"
18 #include "base/files/file_path.h" 18 #include "base/files/file_path.h"
19 #include "base/files/file_util.h" 19 #include "base/files/file_util.h"
20 #include "base/logging.h" 20 #include "base/logging.h"
21 #include "base/macros.h" 21 #include "base/macros.h"
22 #include "base/metrics/histogram.h" 22 #include "base/metrics/histogram.h"
23 #include "base/path_service.h" 23 #include "base/path_service.h"
24 #include "base/prefs/pref_registry_simple.h"
25 #include "base/prefs/pref_service.h"
26 #include "base/prefs/scoped_user_pref_update.h"
27 #include "base/strings/string_number_conversions.h" 24 #include "base/strings/string_number_conversions.h"
28 #include "base/strings/string_util.h" 25 #include "base/strings/string_util.h"
29 #include "base/strings/stringprintf.h" 26 #include "base/strings/stringprintf.h"
30 #include "base/sys_info.h" 27 #include "base/sys_info.h"
31 #include "base/threading/worker_pool.h" 28 #include "base/threading/worker_pool.h"
32 #include "base/time/time.h" 29 #include "base/time/time.h"
33 #include "base/trace_event/trace_event.h" 30 #include "base/trace_event/trace_event.h"
34 #include "base/values.h" 31 #include "base/values.h"
35 #include "chrome/browser/browser_process.h" 32 #include "chrome/browser/browser_process.h"
36 #include "chrome/browser/chrome_notification_types.h" 33 #include "chrome/browser/chrome_notification_types.h"
37 #include "chrome/browser/chromeos/customization/customization_document.h" 34 #include "chrome/browser/chromeos/customization/customization_document.h"
38 #include "chrome/browser/chromeos/login/startup_utils.h" 35 #include "chrome/browser/chromeos/login/startup_utils.h"
39 #include "chrome/browser/chromeos/login/wizard_controller.h" 36 #include "chrome/browser/chromeos/login/wizard_controller.h"
40 #include "chrome/browser/chromeos/settings/cros_settings.h" 37 #include "chrome/browser/chromeos/settings/cros_settings.h"
41 #include "chrome/common/chrome_paths.h" 38 #include "chrome/common/chrome_paths.h"
42 #include "chrome/common/chrome_switches.h" 39 #include "chrome/common/chrome_switches.h"
43 #include "chrome/common/pref_names.h" 40 #include "chrome/common/pref_names.h"
44 #include "chromeos/chromeos_switches.h" 41 #include "chromeos/chromeos_switches.h"
45 #include "chromeos/cryptohome/async_method_caller.h" 42 #include "chromeos/cryptohome/async_method_caller.h"
46 #include "chromeos/dbus/dbus_thread_manager.h" 43 #include "chromeos/dbus/dbus_thread_manager.h"
47 #include "chromeos/login/user_names.h" 44 #include "chromeos/login/user_names.h"
45 #include "components/prefs/pref_registry_simple.h"
46 #include "components/prefs/pref_service.h"
47 #include "components/prefs/scoped_user_pref_update.h"
48 #include "components/signin/core/account_id/account_id.h" 48 #include "components/signin/core/account_id/account_id.h"
49 #include "components/user_manager/user.h" 49 #include "components/user_manager/user.h"
50 #include "components/user_manager/user_image/user_image.h" 50 #include "components/user_manager/user_image/user_image.h"
51 #include "components/user_manager/user_manager.h" 51 #include "components/user_manager/user_manager.h"
52 #include "components/user_manager/user_type.h" 52 #include "components/user_manager/user_type.h"
53 #include "components/wallpaper/wallpaper_layout.h" 53 #include "components/wallpaper/wallpaper_layout.h"
54 #include "content/public/browser/browser_thread.h" 54 #include "content/public/browser/browser_thread.h"
55 #include "content/public/browser/notification_service.h" 55 #include "content/public/browser/notification_service.h"
56 #include "content/public/common/content_switches.h" 56 #include "content/public/common/content_switches.h"
57 #include "third_party/skia/include/core/SkColor.h" 57 #include "third_party/skia/include/core/SkColor.h"
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 default_large_wallpaper_file.value()); 1098 default_large_wallpaper_file.value());
1099 } 1099 }
1100 } 1100 }
1101 1101
1102 if (need_update_screen) { 1102 if (need_update_screen) {
1103 DoSetDefaultWallpaper(EmptyAccountId(), MovableOnDestroyCallbackHolder()); 1103 DoSetDefaultWallpaper(EmptyAccountId(), MovableOnDestroyCallbackHolder());
1104 } 1104 }
1105 } 1105 }
1106 1106
1107 } // namespace chromeos 1107 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698