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

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

Issue 10541013: Add relaunch prompt to linux help page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 8 years, 6 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/version_updater_basic.cc
diff --git a/chrome/browser/ui/webui/help/version_updater_basic.cc b/chrome/browser/ui/webui/help/version_updater_basic.cc
new file mode 100644
index 0000000000000000000000000000000000000000..20fd1c797b7c45083b77b3824e56c257f915dd74
--- /dev/null
+++ b/chrome/browser/ui/webui/help/version_updater_basic.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/webui/help/version_updater_basic.h"
+
+#include "base/string16.h"
+#include "chrome/browser/lifetime/application_lifetime.h"
+#include "chrome/browser/upgrade_detector.h"
+
+void VersionUpdaterBasic::CheckForUpdate(
+ const StatusCallback& status_callback) {
+ if (UpgradeDetector::GetInstance()->notify_upgrade())
+ status_callback.Run(NEARLY_UPDATED, 0, string16());
+ else
+ status_callback.Run(DISABLED, 0, string16());
+}
+
+void VersionUpdaterBasic::RelaunchBrowser() const {
+ browser::AttemptRestart();
+}
+
+VersionUpdater* VersionUpdater::Create() {
+ return new VersionUpdaterBasic;
+}
« no previous file with comments | « chrome/browser/ui/webui/help/version_updater_basic.h ('k') | chrome/browser/ui/webui/help/version_updater_unimplemented.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698