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

Unified Diff: chrome/browser/banners/app_banner_manager.cc

Issue 1958823002: Fix implicit access to raw pointer of scoped_refptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitting out change to scoped_refptr to follow up patch. Created 4 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/banners/app_banner_manager.cc
diff --git a/chrome/browser/banners/app_banner_manager.cc b/chrome/browser/banners/app_banner_manager.cc
index d2b697fa9c7c18d71ec6dbeef2f2d4848f0bc0eb..e20ec795e24a02780581ddb694caf39cd9ede993 100644
--- a/chrome/browser/banners/app_banner_manager.cc
+++ b/chrome/browser/banners/app_banner_manager.cc
@@ -60,7 +60,7 @@ void AppBannerManager::ReplaceWebContents(content::WebContents* web_contents) {
}
bool AppBannerManager::IsFetcherActive() {
- return data_fetcher_ != nullptr && data_fetcher_->is_active();
+ return data_fetcher_ && data_fetcher_->is_active();
}
void AppBannerManager::DidNavigateMainFrame(
@@ -116,7 +116,7 @@ bool AppBannerManager::HandleNonWebApp(const std::string& platform,
}
void AppBannerManager::CancelActiveFetcher() {
- if (data_fetcher_ != nullptr) {
+ if (data_fetcher_) {
data_fetcher_->Cancel();
data_fetcher_ = nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698