OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |