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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service_mac.mm

Issue 22398007: Do not show create shortcuts on context menus for the Mac app list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <ApplicationServices/ApplicationServices.h> 5 #include <ApplicationServices/ApplicationServices.h>
6 #import <Cocoa/Cocoa.h> 6 #import <Cocoa/Cocoa.h>
7 7
8 #include "apps/app_launcher.h" 8 #include "apps/app_launcher.h"
9 #include "apps/app_shim/app_shim_handler_mac.h" 9 #include "apps/app_shim/app_shim_handler_mac.h"
10 #include "apps/app_shim/app_shim_mac.h" 10 #include "apps/app_shim/app_shim_mac.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 gfx::NativeWindow AppListControllerDelegateCocoa::GetAppListWindow() { 234 gfx::NativeWindow AppListControllerDelegateCocoa::GetAppListWindow() {
235 return AppListServiceMac::GetInstance()->GetAppListWindow(); 235 return AppListServiceMac::GetInstance()->GetAppListWindow();
236 } 236 }
237 237
238 bool AppListControllerDelegateCocoa::CanPin() { 238 bool AppListControllerDelegateCocoa::CanPin() {
239 return false; 239 return false;
240 } 240 }
241 241
242 bool AppListControllerDelegateCocoa::CanDoCreateShortcutsFlow( 242 bool AppListControllerDelegateCocoa::CanDoCreateShortcutsFlow(
243 bool is_platform_app) { 243 bool is_platform_app) {
244 return is_platform_app && apps::IsAppShimsEnabled(); 244 return false;
245 } 245 }
246 246
247 void AppListControllerDelegateCocoa::DoCreateShortcutsFlow( 247 void AppListControllerDelegateCocoa::DoCreateShortcutsFlow(
248 Profile* profile, const std::string& extension_id) { 248 Profile* profile, const std::string& extension_id) {
249 ExtensionService* service = 249 ExtensionService* service =
250 extensions::ExtensionSystem::Get(profile)->extension_service(); 250 extensions::ExtensionSystem::Get(profile)->extension_service();
251 DCHECK(service); 251 DCHECK(service);
252 const extensions::Extension* extension = 252 const extensions::Extension* extension =
253 service->GetInstalledExtension(extension_id); 253 service->GetInstalledExtension(extension_id);
254 DCHECK(extension); 254 DCHECK(extension);
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 508
509 // static 509 // static
510 AppListService* AppListService::Get() { 510 AppListService* AppListService::Get() {
511 return AppListServiceMac::GetInstance(); 511 return AppListServiceMac::GetInstance();
512 } 512 }
513 513
514 // static 514 // static
515 void AppListService::InitAll(Profile* initial_profile) { 515 void AppListService::InitAll(Profile* initial_profile) {
516 Get()->Init(initial_profile); 516 Get()->Init(initial_profile);
517 } 517 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698