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

Unified Diff: remoting/host/usage_stats_consent_mac.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/host/touch_injector_win_unittest.cc ('k') | remoting/host/win/host_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/usage_stats_consent_mac.cc
diff --git a/remoting/host/usage_stats_consent_mac.cc b/remoting/host/usage_stats_consent_mac.cc
index 2a7f86aba636b4177380477bf54d87ee4e50d411..50f3ce4d5968ab5b6f3ad6bf178d126e55433f3c 100644
--- a/remoting/host/usage_stats_consent_mac.cc
+++ b/remoting/host/usage_stats_consent_mac.cc
@@ -4,12 +4,12 @@
#include "remoting/host/usage_stats_consent.h"
+#include <memory>
#include <string>
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "remoting/host/config_file_watcher.h"
#include "remoting/host/host_config.h"
@@ -27,7 +27,7 @@ bool GetUsageStatsConsent(bool* allowed, bool* set_by_policy) {
if (command_line->HasSwitch(kHostConfigSwitchName)) {
base::FilePath config_file_path =
command_line->GetSwitchValuePath(kHostConfigSwitchName);
- scoped_ptr<base::DictionaryValue> host_config(
+ std::unique_ptr<base::DictionaryValue> host_config(
HostConfigFromJsonFile(config_file_path));
if (host_config) {
return host_config->GetBoolean(kUsageStatsConsentConfigPath, allowed);
« no previous file with comments | « remoting/host/touch_injector_win_unittest.cc ('k') | remoting/host/win/host_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698