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

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

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc Created 8 years, 5 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_shortcut_manager.h" 5 #include "chrome/browser/extensions/app_shortcut_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/web_applications/web_app.h" 10 #include "chrome/browser/web_applications/web_app.h"
11 #include "chrome/common/chrome_notification_types.h" 11 #include "chrome/common/chrome_notification_types.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/extensions/extension_resource.h" 13 #include "chrome/common/extensions/extension_resource.h"
14 #include "content/public/browser/notification_details.h" 14 #include "content/public/browser/notification_details.h"
15 #include "content/public/browser/notification_source.h" 15 #include "content/public/browser/notification_source.h"
16 #include "grit/theme_resources_standard.h" 16 #include "grit/theme_resources.h"
17 #include "skia/ext/image_operations.h" 17 #include "skia/ext/image_operations.h"
18 #include "ui/base/resource/resource_bundle.h" 18 #include "ui/base/resource/resource_bundle.h"
19 19
20 using extensions::Extension; 20 using extensions::Extension;
21 21
22 namespace { 22 namespace {
23 // Allow tests to disable shortcut creation, to prevent developers' desktops 23 // Allow tests to disable shortcut creation, to prevent developers' desktops
24 // becoming overrun with shortcuts. 24 // becoming overrun with shortcuts.
25 bool disable_shortcut_creation_for_tests = false; 25 bool disable_shortcut_creation_for_tests = false;
26 26
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 info_list.push_back( 132 info_list.push_back(
133 ImageLoadingTracker::ImageInfo(resource, gfx::Size(size, size))); 133 ImageLoadingTracker::ImageInfo(resource, gfx::Size(size, size)));
134 } 134 }
135 135
136 // |icon_resources| may still be empty at this point, in which case LoadImage 136 // |icon_resources| may still be empty at this point, in which case LoadImage
137 // will call the OnImageLoaded callback with an empty image and exit 137 // will call the OnImageLoaded callback with an empty image and exit
138 // immediately. 138 // immediately.
139 tracker_.LoadImages(extension, info_list, ImageLoadingTracker::DONT_CACHE); 139 tracker_.LoadImages(extension, info_list, ImageLoadingTracker::DONT_CACHE);
140 } 140 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/extensions/extension_disabled_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698