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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 897873002: Make ComponentInstaller refcounted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@2015_01_19_component_installer
Patch Set: fix Created 5 years, 10 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 c64b40eec5939be7b98de2f62569cac0c4c2de9c..6a719e8896e98c82fbdf22008a54d7de2c9e89cf 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -878,7 +878,7 @@ BrowserProcessImpl::component_updater() {
}
CRLSetFetcher* BrowserProcessImpl::crl_set_fetcher() {
- if (!crl_set_fetcher_.get())
+ if (!crl_set_fetcher_)
crl_set_fetcher_ = new CRLSetFetcher();
return crl_set_fetcher_.get();
}
@@ -886,13 +886,13 @@ CRLSetFetcher* BrowserProcessImpl::crl_set_fetcher() {
component_updater::PnaclComponentInstaller*
BrowserProcessImpl::pnacl_component_installer() {
#if !defined(DISABLE_NACL)
- if (!pnacl_component_installer_.get()) {
- pnacl_component_installer_.reset(
- new component_updater::PnaclComponentInstaller());
+ if (!pnacl_component_installer_) {
+ pnacl_component_installer_ =
+ new component_updater::PnaclComponentInstaller();
}
return pnacl_component_installer_.get();
#else
- return NULL;
+ return nullptr;
#endif
}
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/component_updater/pepper_flash_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698