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

Side by Side Diff: net/base/platform_mime_util_mac.mm

Issue 17627005: mac: Remove unused includes of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: builds Created 7 years, 6 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 (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 "net/base/platform_mime_util.h" 5 #include "net/base/platform_mime_util.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/mac/foundation_util.h" 11 #include "base/mac/foundation_util.h"
12 #include "base/mac/scoped_cftyperef.h" 12 #include "base/mac/scoped_cftyperef.h"
13 #import "base/mac/scoped_nsobject.h"
14 #include "base/strings/sys_string_conversions.h" 13 #include "base/strings/sys_string_conversions.h"
15 14
16 #if defined(OS_IOS) 15 #if defined(OS_IOS)
17 #include <MobileCoreServices/MobileCoreServices.h> 16 #include <MobileCoreServices/MobileCoreServices.h>
18 #else 17 #else
19 #include <CoreServices/CoreServices.h> 18 #include <CoreServices/CoreServices.h>
20 #endif // defined(OS_IOS) 19 #endif // defined(OS_IOS)
21 20
22 #if !defined(OS_IOS) 21 #if !defined(OS_IOS)
23 // SPI declaration; see the commentary in GetPlatformExtensionsForMimeType. 22 // SPI declaration; see the commentary in GetPlatformExtensionsForMimeType.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 extensions->insert(base::SysNSStringToUTF8(extension)); 96 extensions->insert(base::SysNSStringToUTF8(extension));
98 } else { 97 } else {
99 // Huh? Give up. 98 // Huh? Give up.
100 base::FilePath::StringType ext; 99 base::FilePath::StringType ext;
101 if (GetPreferredExtensionForMimeType(mime_type, &ext)) 100 if (GetPreferredExtensionForMimeType(mime_type, &ext))
102 extensions->insert(ext); 101 extensions->insert(ext);
103 } 102 }
104 } 103 }
105 104
106 } // namespace net 105 } // namespace net
OLDNEW
« no previous file with comments | « content/browser/renderer_host/text_input_client_message_filter.mm ('k') | ui/base/cocoa/hover_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698