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

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

Issue 10824198: Move small c/b/extensions classes into extensions namespace no.1 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest-er master for cq Created 8 years, 4 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 (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.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 namespace extensions {
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
27 #if defined(OS_MACOSX) 27 #if defined(OS_MACOSX)
28 const int kDesiredSizes[] = {16, 32, 128, 256, 512}; 28 const int kDesiredSizes[] = {16, 32, 128, 256, 512};
29 #else 29 #else
30 const int kDesiredSizes[] = {32}; 30 const int kDesiredSizes[] = {32};
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // immediately. 146 // immediately.
147 tracker_.LoadImages(extension, info_list, ImageLoadingTracker::DONT_CACHE); 147 tracker_.LoadImages(extension, info_list, ImageLoadingTracker::DONT_CACHE);
148 } 148 }
149 149
150 void AppShortcutManager::DeleteApplicationShortcuts( 150 void AppShortcutManager::DeleteApplicationShortcuts(
151 const Extension* extension) { 151 const Extension* extension) {
152 ShellIntegration::ShortcutInfo delete_info = 152 ShellIntegration::ShortcutInfo delete_info =
153 ShortcutInfoForExtensionAndProfile(extension, profile_); 153 ShortcutInfoForExtensionAndProfile(extension, profile_);
154 web_app::DeleteAllShortcuts(delete_info); 154 web_app::DeleteAllShortcuts(delete_info);
155 } 155 }
156
157 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/app_shortcut_manager.h ('k') | chrome/browser/extensions/autoupdate_interceptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698