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/macros.h" |
7 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
8 #include "base/synchronization/cancellation_flag.h" | 9 #include "base/synchronization/cancellation_flag.h" |
9 #include "chrome/browser/image_decoder.h" | 10 #include "chrome/browser/image_decoder.h" |
10 #include "chrome/grit/generated_resources.h" | 11 #include "chrome/grit/generated_resources.h" |
11 #include "chromeos/login/login_state.h" | 12 #include "chromeos/login/login_state.h" |
12 #include "components/wallpaper/wallpaper_layout.h" | 13 #include "components/wallpaper/wallpaper_layout.h" |
13 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
14 | 15 |
15 using content::BrowserThread; | 16 using content::BrowserThread; |
16 | 17 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 unsafe_wallpaper_decoder_ = NULL; | 120 unsafe_wallpaper_decoder_ = NULL; |
120 SetError(wallpaper_api_util::kCancelWallpaperMessage); | 121 SetError(wallpaper_api_util::kCancelWallpaperMessage); |
121 SendResponse(false); | 122 SendResponse(false); |
122 } | 123 } |
123 | 124 |
124 void WallpaperFunctionBase::OnFailure(const std::string& error) { | 125 void WallpaperFunctionBase::OnFailure(const std::string& error) { |
125 unsafe_wallpaper_decoder_ = NULL; | 126 unsafe_wallpaper_decoder_ = NULL; |
126 SetError(error); | 127 SetError(error); |
127 SendResponse(false); | 128 SendResponse(false); |
128 } | 129 } |
OLD | NEW |