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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 16295003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 0d1214d71dd764546e44d70717e5eaa0b31267cf..2d7ccf9aa5fa03a00c180819227a7acd3b40b3f8 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -680,9 +680,9 @@ void BrowserProcessImpl::RegisterPrefs(PrefRegistrySimple* registry) {
DownloadRequestLimiter* BrowserProcessImpl::download_request_limiter() {
DCHECK(CalledOnValidThread());
- if (!download_request_limiter_)
+ if (!download_request_limiter_.get())
download_request_limiter_ = new DownloadRequestLimiter();
- return download_request_limiter_;
+ return download_request_limiter_.get();
}
BackgroundModeManager* BrowserProcessImpl::background_mode_manager() {
@@ -813,11 +813,11 @@ void BrowserProcessImpl::CreateLocalState() {
scoped_refptr<PrefRegistrySimple> pref_registry = new PrefRegistrySimple;
// Register local state preferences.
- chrome::RegisterLocalState(pref_registry);
+ chrome::RegisterLocalState(pref_registry.get());
local_state_.reset(
chrome_prefs::CreateLocalState(local_state_path,
- local_state_task_runner_,
+ local_state_task_runner_.get(),
policy_service(),
NULL,
pref_registry,
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/browsing_data/browsing_data_appcache_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698