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

Side by Side Diff: chrome/browser/mac/install_from_dmg.mm

Issue 817153002: Switch users of foundation_util.h to include it directly and clean up uses of mac_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « chrome/browser/mac/dock.mm ('k') | chrome/browser/mac/keystone_glue.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/mac/install_from_dmg.h" 5 #include "chrome/browser/mac/install_from_dmg.h"
6 6
7 #import <AppKit/AppKit.h> 7 #import <AppKit/AppKit.h>
8 #include <ApplicationServices/ApplicationServices.h> 8 #include <ApplicationServices/ApplicationServices.h>
9 #include <CoreFoundation/CoreFoundation.h> 9 #include <CoreFoundation/CoreFoundation.h>
10 #include <CoreServices/CoreServices.h> 10 #include <CoreServices/CoreServices.h>
11 #include <DiskArbitration/DiskArbitration.h> 11 #include <DiskArbitration/DiskArbitration.h>
12 #include <IOKit/IOKitLib.h> 12 #include <IOKit/IOKitLib.h>
13 #include <signal.h> 13 #include <signal.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <string.h> 15 #include <string.h>
16 #include <sys/mount.h> 16 #include <sys/mount.h>
17 #include <sys/param.h> 17 #include <sys/param.h>
18 18
19 #include "base/auto_reset.h" 19 #include "base/auto_reset.h"
20 #include "base/basictypes.h" 20 #include "base/basictypes.h"
21 #include "base/command_line.h" 21 #include "base/command_line.h"
22 #include "base/files/file_path.h" 22 #include "base/files/file_path.h"
23 #include "base/logging.h" 23 #include "base/logging.h"
24 #include "base/mac/authorization_util.h" 24 #include "base/mac/authorization_util.h"
25 #include "base/mac/bundle_locations.h" 25 #include "base/mac/bundle_locations.h"
26 #include "base/mac/foundation_util.h"
26 #include "base/mac/mac_logging.h" 27 #include "base/mac/mac_logging.h"
27 #import "base/mac/mac_util.h"
28 #include "base/mac/mach_logging.h" 28 #include "base/mac/mach_logging.h"
29 #include "base/mac/scoped_authorizationref.h" 29 #include "base/mac/scoped_authorizationref.h"
30 #include "base/mac/scoped_cftyperef.h" 30 #include "base/mac/scoped_cftyperef.h"
31 #include "base/mac/scoped_ioobject.h" 31 #include "base/mac/scoped_ioobject.h"
32 #include "base/mac/scoped_nsautorelease_pool.h" 32 #include "base/mac/scoped_nsautorelease_pool.h"
33 #include "base/strings/string_util.h" 33 #include "base/strings/string_util.h"
34 #include "base/strings/sys_string_conversions.h" 34 #include "base/strings/sys_string_conversions.h"
35 #include "chrome/browser/mac/dock.h" 35 #include "chrome/browser/mac/dock.h"
36 #import "chrome/browser/mac/keystone_glue.h" 36 #import "chrome/browser/mac/keystone_glue.h"
37 #include "chrome/browser/mac/relauncher.h" 37 #include "chrome/browser/mac/relauncher.h"
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 const UInt8* trash_path_u8 = reinterpret_cast<const UInt8*>( 678 const UInt8* trash_path_u8 = reinterpret_cast<const UInt8*>(
679 trash_path.value().c_str()); 679 trash_path.value().c_str());
680 status = FNNotifyByPath(trash_path_u8, 680 status = FNNotifyByPath(trash_path_u8,
681 kFNDirectoryModifiedMessage, 681 kFNDirectoryModifiedMessage,
682 kNilOptions); 682 kNilOptions);
683 if (status != noErr) { 683 if (status != noErr) {
684 OSSTATUS_LOG(ERROR, status) << "FNNotifyByPath"; 684 OSSTATUS_LOG(ERROR, status) << "FNNotifyByPath";
685 return; 685 return;
686 } 686 }
687 } 687 }
OLDNEW
« no previous file with comments | « chrome/browser/mac/dock.mm ('k') | chrome/browser/mac/keystone_glue.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698