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

Unified Diff: chrome/browser/chromeos/login/screens/update_screen.h

Issue 2894783003: Make Hands-Off Zero-Touch Enrollment compatibile with tests (Closed)
Patch Set: Make Hands-Off Zero-Touch Enrollment compatibile with tests Created 3 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/chromeos/login/screens/update_screen.h
diff --git a/chrome/browser/chromeos/login/screens/update_screen.h b/chrome/browser/chromeos/login/screens/update_screen.h
index 2c60ba4ea9237bda0af6bc0d8f7464c57479027b..a03787dea330ebf3971d040ebea52c881c5a5fa2 100644
--- a/chrome/browser/chromeos/login/screens/update_screen.h
+++ b/chrome/browser/chromeos/login/screens/update_screen.h
@@ -79,6 +79,7 @@ class UpdateScreen : public BaseScreen,
FRIEND_TEST_ALL_PREFIXES(UpdateScreenTest, TestBasic);
FRIEND_TEST_ALL_PREFIXES(UpdateScreenTest, TestUpdateAvailable);
FRIEND_TEST_ALL_PREFIXES(UpdateScreenTest, TestAPReselection);
+ friend class UpdateScreenUnitTest;
enum class State {
STATE_IDLE = 0,
@@ -125,6 +126,18 @@ class UpdateScreen : public BaseScreen,
// The user requested an attempt to connect to the network should be made.
void OnConnectRequested();
+ // Records the fact that we performed an update check but do not yet
+ // know if this update check is going to result in an update.
+ void RecordUpdateCheckWithNoUpdateYet();
+
+ // When an update is found, this is called to clear the time of update check
+ // which had saved when we did not yet know whether it would result in an
+ // update.
+ void ClearUpdateCheckNoUpdateTime();
+
+ // Returns true if we should check for an update.
+ bool ShouldCheckForUpdate();
+
// Timer for the interval to wait for the reboot.
// If reboot didn't happen - ask user to reboot manually.
base::OneShotTimer reboot_timer_;
« no previous file with comments | « chrome/browser/chromeos/login/screens/screen_exit_code.h ('k') | chrome/browser/chromeos/login/screens/update_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698