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

Unified Diff: chrome/browser/profile_resetter/resettable_settings_snapshot.cc

Issue 511473002: Remove implicit conversions from scoped_refptr to T* in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move download out Created 6 years, 4 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/profile_resetter/resettable_settings_snapshot.cc
diff --git a/chrome/browser/profile_resetter/resettable_settings_snapshot.cc b/chrome/browser/profile_resetter/resettable_settings_snapshot.cc
index 5d2fedb050f31ba44add6302c884c8e51fee94f5..439153c017971521a2614ebc6f37b3f8b21d76ff 100644
--- a/chrome/browser/profile_resetter/resettable_settings_snapshot.cc
+++ b/chrome/browser/profile_resetter/resettable_settings_snapshot.cc
@@ -90,7 +90,7 @@ ResettableSettingsSnapshot::ResettableSettingsSnapshot(
ResettableSettingsSnapshot::~ResettableSettingsSnapshot() {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
- if (cancellation_flag_)
+ if (cancellation_flag_.get())
cancellation_flag_->data.Set();
}
@@ -134,7 +134,7 @@ int ResettableSettingsSnapshot::FindDifferentFields(
void ResettableSettingsSnapshot::RequestShortcuts(
const base::Closure& callback) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
- DCHECK(!cancellation_flag_ && !shortcuts_determined());
+ DCHECK(!cancellation_flag_.get() && !shortcuts_determined());
cancellation_flag_ = new SharedCancellationFlag;
content::BrowserThread::PostTaskAndReplyWithResult(

Powered by Google App Engine
This is Rietveld 408576698