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

Side by Side Diff: chrome/browser/extensions/app_icon_loader_impl.cc

Issue 229813002: Move extensions manifest IconsHandler to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (icons-handler) Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extensions/app_icon_loader_impl.h" 5 #include "chrome/browser/extensions/app_icon_loader_impl.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_util.h" 9 #include "chrome/browser/extensions/extension_util.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/extensions/extension_constants.h" 11 #include "chrome/common/extensions/extension_constants.h"
12 #include "chrome/common/extensions/manifest_handlers/icons_handler.h"
13 #include "extensions/browser/extension_system.h" 12 #include "extensions/browser/extension_system.h"
14 #include "extensions/common/extension.h" 13 #include "extensions/common/extension.h"
14 #include "extensions/common/manifest_handlers/icons_handler.h"
15 #include "ui/gfx/color_utils.h" 15 #include "ui/gfx/color_utils.h"
16 #include "ui/gfx/image/image_skia_operations.h" 16 #include "ui/gfx/image/image_skia_operations.h"
17 17
18 namespace { 18 namespace {
19 19
20 const extensions::Extension* GetExtensionByID(Profile* profile, 20 const extensions::Extension* GetExtensionByID(Profile* profile,
21 const std::string& id) { 21 const std::string& id) {
22 ExtensionService* service = 22 ExtensionService* service =
23 extensions::ExtensionSystem::Get(profile)->extension_service(); 23 extensions::ExtensionSystem::Get(profile)->extension_service();
24 if (!service) 24 if (!service)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 if (!util::IsAppLaunchable(id, profile_)) { 108 if (!util::IsAppLaunchable(id, profile_)) {
109 const color_utils::HSL shift = {-1, 0, 0.6}; 109 const color_utils::HSL shift = {-1, 0, 0.6};
110 image = gfx::ImageSkiaOperations::CreateHSLShiftedImage(image, shift); 110 image = gfx::ImageSkiaOperations::CreateHSLShiftedImage(image, shift);
111 } 111 }
112 112
113 delegate_->SetAppImage(id, image); 113 delegate_->SetAppImage(id, image);
114 } 114 }
115 115
116 } // namespace extensions 116 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/management/management_api.cc ('k') | chrome/browser/extensions/bookmark_app_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698