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

Unified Diff: chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.cc

Issue 1882243004: Convert //chrome/browser/sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback 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/browser/sync/test/integration/wifi_credentials_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.cc
diff --git a/chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.cc b/chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.cc
index 6f7e3a6a28c9bb064ba996b4975099bc7b70dca6..80452ec67ecd22906ec09e001be3ff13380d7bc1 100644
--- a/chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.cc
+++ b/chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.cc
@@ -4,12 +4,12 @@
#include "chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.h"
+#include <memory>
#include <string>
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
@@ -36,7 +36,7 @@ const char kProfilePrefix[] = "/profile/";
void LogCreateConfigurationFailure(
const std::string& debug_hint,
const std::string& /* network_config_error_message */,
- scoped_ptr<base::DictionaryValue> /* network_config_error_data */) {
+ std::unique_ptr<base::DictionaryValue> /* network_config_error_data */) {
LOG(FATAL) << debug_hint;
}
@@ -102,7 +102,7 @@ void AddWifiCredentialToProfileChromeOs(
const content::BrowserContext* browser_context,
const WifiCredential& credential) {
DCHECK(browser_context);
- scoped_ptr<base::DictionaryValue> onc_properties =
+ std::unique_ptr<base::DictionaryValue> onc_properties =
credential.ToOncProperties();
CHECK(onc_properties) << "Failed to generate ONC properties for "
<< credential.ToString();
« no previous file with comments | « chrome/browser/sync/test/integration/wifi_credentials_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698