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

Unified Diff: android_webview/browser/aw_browser_context.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
« no previous file with comments | « android_webview/browser/aw_browser_context.h ('k') | android_webview/browser/aw_browser_main_parts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_browser_context.cc
diff --git a/android_webview/browser/aw_browser_context.cc b/android_webview/browser/aw_browser_context.cc
index 438f7d2b09dc26b8e9d3b2df22dcddc1cacad13a..959d2b4d7227509bc65663a99e5bce8f82bafff5 100644
--- a/android_webview/browser/aw_browser_context.cc
+++ b/android_webview/browser/aw_browser_context.cc
@@ -79,8 +79,8 @@ void DeleteDirRecursively(const base::FilePath& path) {
AwBrowserContext* g_browser_context = NULL;
-scoped_ptr<net::ProxyConfigService> CreateProxyConfigService() {
- scoped_ptr<net::ProxyConfigService> config_service =
+std::unique_ptr<net::ProxyConfigService> CreateProxyConfigService() {
+ std::unique_ptr<net::ProxyConfigService> config_service =
net::ProxyService::CreateSystemProxyConfigService(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
nullptr /* Ignored on Android */);
@@ -217,7 +217,7 @@ void AwBrowserContext::PreMainMessageLoopRun() {
GetUserAgent()));
data_reduction_proxy_settings_.reset(
new data_reduction_proxy::DataReductionProxySettings());
- scoped_ptr<data_reduction_proxy::DataStore> store(
+ std::unique_ptr<data_reduction_proxy::DataStore> store(
new data_reduction_proxy::DataStore());
base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool();
scoped_refptr<base::SequencedTaskRunner> db_task_runner =
@@ -357,7 +357,7 @@ void AwBrowserContext::InitUserPrefService() {
user_prefs::UserPrefs::Set(this, user_pref_service_.get());
}
-scoped_ptr<content::ZoomLevelDelegate>
+std::unique_ptr<content::ZoomLevelDelegate>
AwBrowserContext::CreateZoomLevelDelegate(
const base::FilePath& partition_path) {
return nullptr;
« no previous file with comments | « android_webview/browser/aw_browser_context.h ('k') | android_webview/browser/aw_browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698