| 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_shim/app_shim_handler_mac.h" | 8 #include "apps/app_shim/app_shim_handler_mac.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 if (enable) { | 181 if (enable) { |
| 182 content::BrowserThread::PostTask( | 182 content::BrowserThread::PostTask( |
| 183 content::BrowserThread::UI, FROM_HERE, | 183 content::BrowserThread::UI, FROM_HERE, |
| 184 base::Bind(&CreateAppListShim, profile_path)); | 184 base::Bind(&CreateAppListShim, profile_path)); |
| 185 return; | 185 return; |
| 186 } | 186 } |
| 187 | 187 |
| 188 // Sanity check because deleting things recursively is scary. | 188 // Sanity check because deleting things recursively is scary. |
| 189 CHECK(install_path.MatchesExtension(".app")); | 189 CHECK(install_path.MatchesExtension(".app")); |
| 190 file_util::Delete(install_path, true /* recursive */); | 190 base::Delete(install_path, true /* recursive */); |
| 191 } | 191 } |
| 192 | 192 |
| 193 void CreateShortcutsInDefaultLocation( | 193 void CreateShortcutsInDefaultLocation( |
| 194 const ShellIntegration::ShortcutInfo& shortcut_info) { | 194 const ShellIntegration::ShortcutInfo& shortcut_info) { |
| 195 web_app::CreateShortcuts(shortcut_info, | 195 web_app::CreateShortcuts(shortcut_info, |
| 196 ShellIntegration::ShortcutLocations()); | 196 ShellIntegration::ShortcutLocations()); |
| 197 } | 197 } |
| 198 | 198 |
| 199 AppListControllerDelegateCocoa::AppListControllerDelegateCocoa() {} | 199 AppListControllerDelegateCocoa::AppListControllerDelegateCocoa() {} |
| 200 | 200 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 | 451 |
| 452 // static | 452 // static |
| 453 AppListService* AppListService::Get() { | 453 AppListService* AppListService::Get() { |
| 454 return AppListServiceMac::GetInstance(); | 454 return AppListServiceMac::GetInstance(); |
| 455 } | 455 } |
| 456 | 456 |
| 457 // static | 457 // static |
| 458 void AppListService::InitAll(Profile* initial_profile) { | 458 void AppListService::InitAll(Profile* initial_profile) { |
| 459 Get()->Init(initial_profile); | 459 Get()->Init(initial_profile); |
| 460 } | 460 } |
| OLD | NEW |