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

Side by Side Diff: chrome/browser/chromeos/extensions/wallpaper_function_base.cc

Issue 2763103002: Move ImageDecoder to components/image_fetcher/content (Closed)
Patch Set: Rebased. Created 3 years, 8 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 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/macros.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/synchronization/cancellation_flag.h" 9 #include "base/synchronization/cancellation_flag.h"
10 #include "chrome/browser/image_decoder.h"
11 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
12 #include "chromeos/login/login_state.h" 11 #include "chromeos/login/login_state.h"
12 #include "components/image_fetcher/content/image_decoder.h"
13 #include "components/wallpaper/wallpaper_layout.h" 13 #include "components/wallpaper/wallpaper_layout.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 using content::BrowserThread; 16 using content::BrowserThread;
17 17
18 namespace wallpaper_api_util { 18 namespace wallpaper_api_util {
19 namespace { 19 namespace {
20 20
21 // Keeps in sync (same order) with WallpaperLayout enum in header file. 21 // Keeps in sync (same order) with WallpaperLayout enum in header file.
22 const char* const kWallpaperLayoutArrays[] = { 22 const char* const kWallpaperLayoutArrays[] = {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 unsafe_wallpaper_decoder_ = NULL; 120 unsafe_wallpaper_decoder_ = NULL;
121 SetError(wallpaper_api_util::kCancelWallpaperMessage); 121 SetError(wallpaper_api_util::kCancelWallpaperMessage);
122 SendResponse(false); 122 SendResponse(false);
123 } 123 }
124 124
125 void WallpaperFunctionBase::OnFailure(const std::string& error) { 125 void WallpaperFunctionBase::OnFailure(const std::string& error) {
126 unsafe_wallpaper_decoder_ = NULL; 126 unsafe_wallpaper_decoder_ = NULL;
127 SetError(error); 127 SetError(error);
128 SendResponse(false); 128 SendResponse(false);
129 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698