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

Unified Diff: chrome/browser/ui/webui/help/help_handler.cc

Issue 1117263002: Switch on-demand update checks to the less-old GoogleUpdate3 API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync to position 329622 Created 5 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/ui/webui/help/help_handler.cc
diff --git a/chrome/browser/ui/webui/help/help_handler.cc b/chrome/browser/ui/webui/help/help_handler.cc
index 007980d818c2b6e957b29cfd20517a145f40f5a2..193c960b7430a617f000a9b7982c5fc79254b61a 100644
--- a/chrome/browser/ui/webui/help/help_handler.cc
+++ b/chrome/browser/ui/webui/help/help_handler.cc
@@ -145,8 +145,7 @@ std::string ReadFCCLabelText() {
} // namespace
HelpHandler::HelpHandler()
- : version_updater_(VersionUpdater::Create(nullptr)),
- weak_factory_(this) {
+ : weak_factory_(this) {
}
HelpHandler::~HelpHandler() {
@@ -300,10 +299,7 @@ void HelpHandler::GetLocalizedValues(base::DictionaryValue* localized_strings) {
}
void HelpHandler::RegisterMessages() {
-#if defined(OS_CHROMEOS)
- version_updater_.reset(
- VersionUpdater::Create(web_ui()->GetWebContents()->GetBrowserContext()));
-#endif
+ version_updater_.reset(VersionUpdater::Create(web_ui()->GetWebContents()));
registrar_.Add(this, chrome::NOTIFICATION_UPGRADE_RECOMMENDED,
content::NotificationService::AllSources());

Powered by Google App Engine
This is Rietveld 408576698