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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_api.cc

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/file_system/file_system_api.cc
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.cc b/chrome/browser/extensions/api/file_system/file_system_api.cc
index a2a5182967813a4ec0c247266a62dda475836f44..235b770ad55e5c4f4119d7599ddf26543c7cbc5c 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_api.cc
@@ -85,12 +85,8 @@ const int kWhitelistedPaths[] = {
// Retrieves the localized display name for the base name of the given path.
// If the path is not localized, this will just return the base name.
std::string GetDisplayBaseName(const base::FilePath& path) {
- base::mac::ScopedCFTypeRef<CFURLRef> url(
- CFURLCreateFromFileSystemRepresentation(
- NULL,
- (const UInt8*)path.value().c_str(),
- path.value().length(),
- true));
+ base::ScopedCFTypeRef<CFURLRef> url(CFURLCreateFromFileSystemRepresentation(
+ NULL, (const UInt8*)path.value().c_str(), path.value().length(), true));
Mark Mentovai 2013/06/21 20:29:40 The automatic formatter has done this a handful of
Nico 2013/06/21 21:09:06 I think the rule clang-format uses is "if all para
if (!url)
return path.BaseName().value();

Powered by Google App Engine
This is Rietveld 408576698