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

Side by Side Diff: chrome/browser/upgrade_detector.h

Issue 1061663003: Fixed logic for display of upgrade menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit. Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UPGRADE_DETECTOR_H_ 5 #ifndef CHROME_BROWSER_UPGRADE_DETECTOR_H_
6 #define CHROME_BROWSER_UPGRADE_DETECTOR_H_ 6 #define CHROME_BROWSER_UPGRADE_DETECTOR_H_
7 7
8 #include "base/timer/timer.h" 8 #include "base/timer/timer.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "ui/base/idle/idle.h" 10 #include "ui/base/idle/idle.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 void set_upgrade_notification_stage(UpgradeNotificationAnnoyanceLevel stage) { 126 void set_upgrade_notification_stage(UpgradeNotificationAnnoyanceLevel stage) {
127 upgrade_notification_stage_ = stage; 127 upgrade_notification_stage_ = stage;
128 } 128 }
129 129
130 void set_is_factory_reset_required(bool is_factory_reset_required) { 130 void set_is_factory_reset_required(bool is_factory_reset_required) {
131 is_factory_reset_required_ = is_factory_reset_required; 131 is_factory_reset_required_ = is_factory_reset_required;
132 } 132 }
133 133
134 private: 134 private:
135 FRIEND_TEST_ALL_PREFIXES(WrenchMenuModelTest, Basics);
136
135 // Initiates an Idle check. See IdleCallback below. 137 // Initiates an Idle check. See IdleCallback below.
136 void CheckIdle(); 138 void CheckIdle();
137 139
138 // The callback for the IdleCheck. Tells us whether Chrome has received any 140 // The callback for the IdleCheck. Tells us whether Chrome has received any
139 // input events since the specified time. 141 // input events since the specified time.
140 void IdleCallback(ui::IdleState state); 142 void IdleCallback(ui::IdleState state);
141 143
142 // Triggers a global notification of the specified |type|. 144 // Triggers a global notification of the specified |type|.
143 void TriggerNotification(chrome::NotificationType type); 145 void TriggerNotification(chrome::NotificationType type);
144 146
(...skipping 22 matching lines...) Expand all
167 UpgradeNotificationAnnoyanceLevel upgrade_notification_stage_; 169 UpgradeNotificationAnnoyanceLevel upgrade_notification_stage_;
168 170
169 // Whether we have waited long enough after detecting an upgrade (to see 171 // Whether we have waited long enough after detecting an upgrade (to see
170 // is we should start nagging about upgrading). 172 // is we should start nagging about upgrading).
171 bool notify_upgrade_; 173 bool notify_upgrade_;
172 174
173 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector); 175 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector);
174 }; 176 };
175 177
176 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_H_ 178 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698