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

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

Issue 7774009: [cros] check for updates in WebUI OOBE can be cancelled in dev builds. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed mock for UpdateScreenActor. Created 9 years, 4 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/update_screen_actor.h
diff --git a/chrome/browser/chromeos/login/update_screen_actor.h b/chrome/browser/chromeos/login/update_screen_actor.h
index aa345848ee8816f3e730f22625a5478cc03177ef..9c475953ef6623b8906c87228847c7ecc3f86681 100644
--- a/chrome/browser/chromeos/login/update_screen_actor.h
+++ b/chrome/browser/chromeos/login/update_screen_actor.h
@@ -13,8 +13,18 @@ class ScreenObserver;
class UpdateScreenActor {
public:
+ class Delegate {
+ public:
+ virtual ~Delegate() {}
+ // Force cancel update.
+ virtual void CancelUpdate() = 0;
+ };
+
virtual ~UpdateScreenActor() {}
whywhat 2011/08/29 17:55:51 nit: I think we'd better notify the screen that we
Ivan Korotkov 2011/08/29 18:19:17 Other actors with delegates (like UserImageScreenA
+ // Sets screen this actor belongs to.
+ virtual void SetDelegate(Delegate* screen) = 0;
+
// Shows the screen.
virtual void Show() = 0;

Powered by Google App Engine
This is Rietveld 408576698