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; |
} |