OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/extensions/wallpaper_function_base.h" | 5 #include "chrome/browser/chromeos/extensions/wallpaper_function_base.h" |
6 | 6 |
7 #include "base/synchronization/cancellation_flag.h" | 7 #include "base/synchronization/cancellation_flag.h" |
8 #include "chrome/browser/image_decoder.h" | 8 #include "chrome/browser/image_decoder.h" |
| 9 #include "chrome/grit/generated_resources.h" |
9 #include "chromeos/login/login_state.h" | 10 #include "chromeos/login/login_state.h" |
10 #include "grit/generated_resources.h" | |
11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
12 | 12 |
13 using content::BrowserThread; | 13 using content::BrowserThread; |
14 | 14 |
15 namespace wallpaper_api_util { | 15 namespace wallpaper_api_util { |
16 namespace { | 16 namespace { |
17 | 17 |
18 // Keeps in sync (same order) with WallpaperLayout enum in header file. | 18 // Keeps in sync (same order) with WallpaperLayout enum in header file. |
19 const char* kWallpaperLayoutArrays[] = { | 19 const char* kWallpaperLayoutArrays[] = { |
20 "CENTER", | 20 "CENTER", |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 unsafe_wallpaper_decoder_ = NULL; | 117 unsafe_wallpaper_decoder_ = NULL; |
118 SetError(wallpaper_api_util::kCancelWallpaperMessage); | 118 SetError(wallpaper_api_util::kCancelWallpaperMessage); |
119 SendResponse(false); | 119 SendResponse(false); |
120 } | 120 } |
121 | 121 |
122 void WallpaperFunctionBase::OnFailure(const std::string& error) { | 122 void WallpaperFunctionBase::OnFailure(const std::string& error) { |
123 unsafe_wallpaper_decoder_ = NULL; | 123 unsafe_wallpaper_decoder_ = NULL; |
124 SetError(error); | 124 SetError(error); |
125 SendResponse(false); | 125 SendResponse(false); |
126 } | 126 } |
OLD | NEW |