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

Unified Diff: android_webview/browser/aw_pref_store.cc

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 9 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: android_webview/browser/aw_pref_store.cc
diff --git a/android_webview/browser/aw_pref_store.cc b/android_webview/browser/aw_pref_store.cc
index f72ec1b06e004c83006a440b0f41d218692fd888..b245656b8c7f034d24e8644e50e0940e90652280 100644
--- a/android_webview/browser/aw_pref_store.cc
+++ b/android_webview/browser/aw_pref_store.cc
@@ -4,9 +4,9 @@
#include "android_webview/browser/aw_pref_store.h"
+#include <memory>
#include <utility>
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
AwPrefStore::AwPrefStore() {}
@@ -40,7 +40,7 @@ bool AwPrefStore::IsInitializationComplete() const {
}
void AwPrefStore::SetValue(const std::string& key,
- scoped_ptr<base::Value> value,
+ std::unique_ptr<base::Value> value,
uint32_t flags) {
DCHECK(value);
if (prefs_.SetValue(key, std::move(value)))
@@ -48,7 +48,7 @@ void AwPrefStore::SetValue(const std::string& key,
}
void AwPrefStore::SetValueSilently(const std::string& key,
- scoped_ptr<base::Value> value,
+ std::unique_ptr<base::Value> value,
uint32_t flags) {
prefs_.SetValue(key, std::move(value));
}
« no previous file with comments | « android_webview/browser/aw_pref_store.h ('k') | android_webview/browser/aw_render_thread_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698