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

Unified Diff: ash/desktop_background/desktop_background_controller.cc

Issue 10492003: Use a #fefefe solid color wallpaper background before user login for GAIA login flow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 6 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: ash/desktop_background/desktop_background_controller.cc
diff --git a/ash/desktop_background/desktop_background_controller.cc b/ash/desktop_background/desktop_background_controller.cc
index 9014754e5f9043981f968a4b60b06c4e7eecb158..f6e6dfcb1c303b149dc36f7fad9ed63c29ee363b 100644
--- a/ash/desktop_background/desktop_background_controller.cc
+++ b/ash/desktop_background/desktop_background_controller.cc
@@ -104,6 +104,9 @@ void DesktopBackgroundController::SetDefaultWallpaper(int index) {
if (index == ash::GetInvalidWallpaperIndex()) {
CreateEmptyWallpaper();
return;
+ } else if (index == ash::GetSolidColorIndex()) {
+ SetDesktopBackgroundSolidColorMode(kLoginWallpaperColor);
+ return;
}
if (previous_index_ == index)
@@ -138,13 +141,14 @@ void DesktopBackgroundController::CancelPendingWallpaperOperation() {
weak_ptr_factory_.InvalidateWeakPtrs();
}
-void DesktopBackgroundController::SetDesktopBackgroundSolidColorMode() {
+void DesktopBackgroundController::SetDesktopBackgroundSolidColorMode(
+ SkColor color) {
// Set a solid black background.
// TODO(derat): Remove this in favor of having the compositor only clear the
// viewport when there are regions not covered by a layer:
// http://crbug.com/113445
ui::Layer* background_layer = new ui::Layer(ui::LAYER_SOLID_COLOR);
- background_layer->SetColor(SK_ColorBLACK);
+ background_layer->SetColor(color);
root_window_->GetChildById(
internal::kShellWindowId_DesktopBackgroundContainer)->
layer()->Add(background_layer);
« no previous file with comments | « ash/desktop_background/desktop_background_controller.h ('k') | ash/desktop_background/desktop_background_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698