namespace {
// Keeps in sync (same order) with WallpaperLayout enum in header file.
-const char* kWallpaperLayoutArrays[] = {
+const char* const kWallpaperLayoutArrays[] = {
"CENTER",
"CENTER_CROPPED",
"STRETCH",
const int kWallpaperLayoutCount = arraysize(kWallpaperLayoutArrays);
-} // namespace
+} // namespace
const char kCancelWallpaperMessage[] = "Set wallpaper was canceled.";
}
virtual void OnImageDecoded(const ImageDecoder* decoder,
- const SkBitmap& decoded_image) OVERRIDE {
+ const SkBitmap& decoded_image) override {
// Make the SkBitmap immutable as we won't modify it. This is important
// because otherwise it gets duplicated during painting, wasting memory.
SkBitmap immutable(decoded_image);
delete this;
}
- virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE {
+ virtual void OnDecodeImageFailed(const ImageDecoder* decoder) override {
function_->OnFailure(
l10n_util::GetStringUTF8(IDS_WALLPAPER_MANAGER_INVALID_WALLPAPER));
delete this;