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

Unified Diff: chrome/browser/extensions/user_script_master.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/extensions/user_script_master.cc
diff --git a/chrome/browser/extensions/user_script_master.cc b/chrome/browser/extensions/user_script_master.cc
index 9be695ffe21c98ca38467127aaad3c2495d0b385..5de101083e2763f547bc675f67a5e730733516d1 100644
--- a/chrome/browser/extensions/user_script_master.cc
+++ b/chrome/browser/extensions/user_script_master.cc
@@ -325,7 +325,7 @@ UserScriptMaster::UserScriptMaster(Profile* profile)
}
UserScriptMaster::~UserScriptMaster() {
- if (script_reloader_)
+ if (script_reloader_.get())
script_reloader_->DisownMaster();
}
@@ -417,7 +417,7 @@ void UserScriptMaster::Observe(int type,
}
if (should_start_load) {
- if (script_reloader_) {
+ if (script_reloader_.get()) {
pending_load_ = true;
} else {
StartLoad();
@@ -426,7 +426,7 @@ void UserScriptMaster::Observe(int type,
}
void UserScriptMaster::StartLoad() {
- if (!script_reloader_)
+ if (!script_reloader_.get())
script_reloader_ = new ScriptReloader(this);
script_reloader_->StartLoad(user_scripts_, extensions_info_);
« no previous file with comments | « chrome/browser/extensions/updater/extension_updater_unittest.cc ('k') | chrome/browser/extensions/web_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698