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

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

Issue 16950028: Move file_util::Delete to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/ui/network_profile_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698