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

Side by Side Diff: chrome/browser/ui/ash/system_tray_delegate_utils.cc

Issue 2493973003: Display "Restart to update" dialog to Chrome OS users. (Closed)
Patch Set: Display "Restart to update" dialog to Chrome OS users. Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/system_tray_delegate_utils.h" 5 #include "chrome/browser/ui/ash/system_tray_delegate_utils.h"
6 6
7 #include "ash/common/system/tray/system_tray_delegate.h" 7 #include "ash/common/system/tray/system_tray_delegate.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/upgrade_detector.h" 9 #include "chrome/browser/upgrade_detector.h"
10 10
(...skipping 15 matching lines...) Expand all
26 break; 26 break;
27 case UpgradeDetector::UPGRADE_ANNOYANCE_LOW: 27 case UpgradeDetector::UPGRADE_ANNOYANCE_LOW:
28 info->severity = ash::UpdateInfo::UPDATE_LOW; 28 info->severity = ash::UpdateInfo::UPDATE_LOW;
29 break; 29 break;
30 case UpgradeDetector::UPGRADE_ANNOYANCE_NONE: 30 case UpgradeDetector::UPGRADE_ANNOYANCE_NONE:
31 info->severity = ash::UpdateInfo::UPDATE_NONE; 31 info->severity = ash::UpdateInfo::UPDATE_NONE;
32 break; 32 break;
33 } 33 }
34 info->update_required = detector->notify_upgrade(); 34 info->update_required = detector->notify_upgrade();
35 info->factory_reset_required = detector->is_factory_reset_required(); 35 info->factory_reset_required = detector->is_factory_reset_required();
36 // This value is assumed to be false and overridden on Chrome OS.
37 info->component_update_required = false;
36 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698