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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h

Issue 292973005: Flag-file added for rollback reset option. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits fixed Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/reset_screen_handler.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 void OnRollbackCheck(bool can_rollback); 44 void OnRollbackCheck(bool can_rollback);
45 45
46 private: 46 private:
47 // JS messages handlers. 47 // JS messages handlers.
48 void HandleOnCancel(); 48 void HandleOnCancel();
49 void HandleOnRestart(bool should_rollback); 49 void HandleOnRestart(bool should_rollback);
50 void HandleOnPowerwash(bool rollback_checked); 50 void HandleOnPowerwash(bool rollback_checked);
51 void HandleOnLearnMore(); 51 void HandleOnLearnMore();
52 52
53 void ChooseAndApplyShowScenario();
54 void OnRollbackFlagFileCheckDone(scoped_ptr<bool> file_exists);
53 void ShowWithParams(); 55 void ShowWithParams();
54 56
55 Delegate* delegate_; 57 Delegate* delegate_;
56 58
57 // Help application used for help dialogs. 59 // Help application used for help dialogs.
58 scoped_refptr<HelpAppLauncher> help_app_; 60 scoped_refptr<HelpAppLauncher> help_app_;
59 61
60 // Keeps whether screen should be shown right after initialization. 62 // Keeps whether screen should be shown right after initialization.
61 bool show_on_init_; 63 bool show_on_init_;
62 64
63 // Keeps whether restart is required before reset. 65 // Keeps whether restart is required before reset.
64 // False if first exec after boot. 66 // False if first exec after boot.
65 bool restart_required_; 67 bool restart_required_;
66 68
67 // Keeps whether previous reboot was requested from reset screen. Makes sense 69 // Keeps whether previous reboot was requested from reset screen. Makes sense
68 // for first exec after boot situation. 70 // for first exec after boot situation.
69 bool reboot_was_requested_; 71 bool reboot_was_requested_;
70 72
71 // Keeps whether rollback option is available fo. 73 // Keeps whether rollback option is available fo.
72 bool rollback_available_; 74 bool rollback_available_;
73 75
74 base::WeakPtrFactory<ResetScreenHandler> weak_ptr_factory_; 76 base::WeakPtrFactory<ResetScreenHandler> weak_ptr_factory_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler); 78 DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler);
77 }; 79 };
78 80
79 } // namespace chromeos 81 } // namespace chromeos
80 82
81 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ 83 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/reset_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698