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

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

Issue 29263007: linux and chromeos: Turn on -Wunused-const-variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 years, 2 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/wallpaper_manager.h" 5 #include "chrome/browser/chromeos/login/wallpaper_manager.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // The amount of delay before starts to move custom wallpapers to the new place. 50 // The amount of delay before starts to move custom wallpapers to the new place.
51 const int kMoveCustomWallpaperDelaySeconds = 30; 51 const int kMoveCustomWallpaperDelaySeconds = 30;
52 52
53 // Default quality for encoding wallpaper. 53 // Default quality for encoding wallpaper.
54 const int kDefaultEncodingQuality = 90; 54 const int kDefaultEncodingQuality = 90;
55 55
56 // A dictionary pref that maps usernames to file paths to their wallpapers. 56 // A dictionary pref that maps usernames to file paths to their wallpapers.
57 // Deprecated. Will remove this const char after done migration. 57 // Deprecated. Will remove this const char after done migration.
58 const char kUserWallpapers[] = "UserWallpapers"; 58 const char kUserWallpapers[] = "UserWallpapers";
59 59
60 const int kThumbnailWidth = 128;
61 const int kThumbnailHeight = 80;
62
63 const int kCacheWallpaperDelayMs = 500; 60 const int kCacheWallpaperDelayMs = 500;
64 61
65 // A dictionary pref that maps usernames to wallpaper properties. 62 // A dictionary pref that maps usernames to wallpaper properties.
66 const char kUserWallpapersProperties[] = "UserWallpapersProperties"; 63 const char kUserWallpapersProperties[] = "UserWallpapersProperties";
67 64
68 // Names of nodes with info about wallpaper in |kUserWallpapersProperties| 65 // Names of nodes with info about wallpaper in |kUserWallpapersProperties|
69 // dictionary. 66 // dictionary.
70 const char kNewWallpaperDateNodeName[] = "date"; 67 const char kNewWallpaperDateNodeName[] = "date";
71 const char kNewWallpaperLayoutNodeName[] = "layout"; 68 const char kNewWallpaperLayoutNodeName[] = "layout";
72 const char kNewWallpaperFileNodeName[] = "file"; 69 const char kNewWallpaperFileNodeName[] = "file";
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 // |sequence_token_| here. 1052 // |sequence_token_| here.
1056 wallpaper_loader_->Start(wallpaper_path.value(), 0, sequence_token_, 1053 wallpaper_loader_->Start(wallpaper_path.value(), 0, sequence_token_,
1057 base::Bind(&WallpaperManager::OnWallpaperDecoded, 1054 base::Bind(&WallpaperManager::OnWallpaperDecoded,
1058 base::Unretained(this), 1055 base::Unretained(this),
1059 email, 1056 email,
1060 info.layout, 1057 info.layout,
1061 update_wallpaper)); 1058 update_wallpaper));
1062 } 1059 }
1063 1060
1064 } // namespace chromeos 1061 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/startup_utils.cc ('k') | chrome/browser/chromeos/login/wallpaper_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698