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

Unified Diff: chrome/common/chrome_paths_mac.mm

Issue 1880143002: Convert chrome/common to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « chrome/common/chrome_paths_linux.cc ('k') | chrome/common/cloud_print/cloud_print_cdd_conversion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths_mac.mm
diff --git a/chrome/common/chrome_paths_mac.mm b/chrome/common/chrome_paths_mac.mm
index db3262927558e4eaa5ad72c03028e74209935f63..d0bbbf72ff0e356e424dc280eeb1441c990b5770 100644
--- a/chrome/common/chrome_paths_mac.mm
+++ b/chrome/common/chrome_paths_mac.mm
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/common/chrome_paths_internal.h"
-
#import <Foundation/Foundation.h>
#include <string.h>
+#include <memory>
#include <string>
#include "base/base_paths.h"
@@ -14,10 +13,10 @@
#import "base/mac/foundation_util.h"
#import "base/mac/scoped_nsautorelease_pool.h"
#include "base/memory/free_deleter.h"
-#include "base/memory/scoped_ptr.h"
#include "base/path_service.h"
#include "build/build_config.h"
#include "chrome/common/chrome_constants.h"
+#include "chrome/common/chrome_paths_internal.h"
namespace {
@@ -230,8 +229,8 @@ NSBundle* OuterAppBundle() {
bool GetUserDataDirectoryForBrowserBundle(NSBundle* bundle,
base::FilePath* result) {
- scoped_ptr<char, base::FreeDeleter>
- product_dir_name(ProductDirNameForBundle(bundle));
+ std::unique_ptr<char, base::FreeDeleter> product_dir_name(
+ ProductDirNameForBundle(bundle));
return GetDefaultUserDataDirectoryForProduct(product_dir_name.get(), result);
}
« no previous file with comments | « chrome/common/chrome_paths_linux.cc ('k') | chrome/common/cloud_print/cloud_print_cdd_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698