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

Unified Diff: chrome/browser/ui/browser_commands.cc

Issue 325433002: Elevated install of recovery component (UI part). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 479e4e8866a8fdbe696d78a8f8134ebda732257f..25553d21c90b61b77fef8da184912a32004a94d7 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -1062,7 +1062,12 @@ void ShowAvatarMenu(Browser* browser) {
}
void OpenUpdateChromeDialog(Browser* browser) {
- if (UpgradeDetector::GetInstance()->is_outdated_install()) {
+ if (UpgradeDetector::GetInstance()->is_elevation_needed_for_recovery()) {
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_UPGRADE_NEEDS_ELEVATION,
+ content::NotificationService::AllSources(),
+ content::NotificationService::NoDetails());
+ } else if (UpgradeDetector::GetInstance()->is_outdated_install()) {
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_OUTDATED_INSTALL,
content::NotificationService::AllSources(),

Powered by Google App Engine
This is Rietveld 408576698