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

Side by Side Diff: chrome/browser/chromeos/login/wallpaper_manager.h

Issue 11299304: Callback to function InitializeRegisteredDeviceWallpaper after cros settings can be trusted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wallpaper_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/desktop_background/desktop_background_controller.h" 10 #include "ash/desktop_background/desktop_background_controller.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 // Clears all obsolete wallpaper prefs from old version wallpaper pickers. 186 // Clears all obsolete wallpaper prefs from old version wallpaper pickers.
187 void ClearObsoleteWallpaperPrefs(); 187 void ClearObsoleteWallpaperPrefs();
188 188
189 // Deletes a list of wallpaper files in |file_list|. 189 // Deletes a list of wallpaper files in |file_list|.
190 void DeleteWallpaperInList(const std::vector<FilePath>& file_list); 190 void DeleteWallpaperInList(const std::vector<FilePath>& file_list);
191 191
192 // Deletes all |email| related custom or converted wallpapers. 192 // Deletes all |email| related custom or converted wallpapers.
193 void DeleteUserWallpapers(const std::string& email); 193 void DeleteUserWallpapers(const std::string& email);
194 194
195 // Initialize wallpaper of registered device after device policy is trusted.
196 // Note that before device is enrolled, it proceeds with untrusted setting.
197 void InitializeRegisteredDeviceWallpaper();
198
195 // Loads |email|'s wallpaper. When |update_wallpaper| is true, sets wallpaper 199 // Loads |email|'s wallpaper. When |update_wallpaper| is true, sets wallpaper
196 // to the loaded wallpaper. 200 // to the loaded wallpaper.
197 void LoadWallpaper(const std::string& email, 201 void LoadWallpaper(const std::string& email,
198 const WallpaperInfo& info, 202 const WallpaperInfo& info,
199 bool update_wallpaper); 203 bool update_wallpaper);
200 204
201 // Gets |email|'s custom wallpaper at |wallpaper_path|. Falls back on original 205 // Gets |email|'s custom wallpaper at |wallpaper_path|. Falls back on original
202 // custom wallpaper. When |update_wallpaper| is true, sets wallpaper to the 206 // custom wallpaper. When |update_wallpaper| is true, sets wallpaper to the
203 // loaded wallpaper. Must run on FILE thread. 207 // loaded wallpaper. Must run on FILE thread.
204 void GetCustomWallpaperInternal(const std::string& email, 208 void GetCustomWallpaperInternal(const std::string& email,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 content::NotificationRegistrar registrar_; 303 content::NotificationRegistrar registrar_;
300 304
301 base::OneShotTimer<WallpaperManager> timer_; 305 base::OneShotTimer<WallpaperManager> timer_;
302 306
303 DISALLOW_COPY_AND_ASSIGN(WallpaperManager); 307 DISALLOW_COPY_AND_ASSIGN(WallpaperManager);
304 }; 308 };
305 309
306 } // namespace chromeos 310 } // namespace chromeos
307 311
308 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ 312 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wallpaper_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698