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

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

Issue 6648009: Modify UpdateLibrary to use async RequestUpdateCheck call (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 9 years, 9 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
« no previous file with comments | « chrome/browser/chromeos/cros/update_library.cc ('k') | chrome/browser/chromeos/login/update_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/update_screen.h
diff --git a/chrome/browser/chromeos/login/update_screen.h b/chrome/browser/chromeos/login/update_screen.h
index 2fd986495ef33ee7e36220259878a0af8a7880bb..c1afb0d9409b71f21ebd7121dc863c41861d8d99 100644
--- a/chrome/browser/chromeos/login/update_screen.h
+++ b/chrome/browser/chromeos/login/update_screen.h
@@ -60,6 +60,9 @@ class UpdateScreen: public DefaultViewScreen<chromeos::UpdateView>,
// Default value is false.
void SetAllUpdatesCritical(bool is_critical);
+ // Returns true if this instance is still active (i.e. has not been deleted).
+ static bool HasInstance(UpdateScreen* inst);
+
private:
// Timer notification handlers.
void OnWaitForRebootTimeElapsed();
@@ -71,6 +74,10 @@ class UpdateScreen: public DefaultViewScreen<chromeos::UpdateView>,
// If reboot didn't happen - ask user to reboot manually.
base::OneShotTimer<UpdateScreen> reboot_timer_;
+ // Returns a static InstanceSet.
+ typedef std::set<UpdateScreen*> InstanceSet;
+ static InstanceSet& GetInstanceSet();
+
// True if in the process of checking for update.
bool checking_for_update_;
« no previous file with comments | « chrome/browser/chromeos/cros/update_library.cc ('k') | chrome/browser/chromeos/login/update_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698