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

Side by Side Diff: chrome/browser/extensions/api/system_private/system_private_api.cc

Issue 309533006: Added processing for a lost status to UpdateEngineClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch fixed. Created 6 years, 6 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
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 #include "chrome/browser/extensions/api/system_private/system_private_api.h" 5 #include "chrome/browser/extensions/api/system_private/system_private_api.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/extensions/event_router_forwarder.h" 10 #include "chrome/browser/extensions/event_router_forwarder.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 break; 107 break;
108 case chromeos::UpdateEngineClient::UPDATE_STATUS_FINALIZING: 108 case chromeos::UpdateEngineClient::UPDATE_STATUS_FINALIZING:
109 state = kUpdatingState; 109 state = kUpdatingState;
110 download_progress = 1; 110 download_progress = 1;
111 break; 111 break;
112 case chromeos::UpdateEngineClient::UPDATE_STATUS_UPDATED_NEED_REBOOT: 112 case chromeos::UpdateEngineClient::UPDATE_STATUS_UPDATED_NEED_REBOOT:
113 state = kNeedRestartState; 113 state = kNeedRestartState;
114 download_progress = 1; 114 download_progress = 1;
115 break; 115 break;
116 case chromeos::UpdateEngineClient::UPDATE_STATUS_REPORTING_ERROR_EVENT: 116 case chromeos::UpdateEngineClient::UPDATE_STATUS_REPORTING_ERROR_EVENT:
117 case chromeos::UpdateEngineClient::UPDATE_STATUS_ATTEMPTING_ROLLBACK:
117 state = kNotAvailableState; 118 state = kNotAvailableState;
118 break; 119 break;
119 } 120 }
120 #else 121 #else
121 if (UpgradeDetector::GetInstance()->notify_upgrade()) { 122 if (UpgradeDetector::GetInstance()->notify_upgrade()) {
122 state = kNeedRestartState; 123 state = kNeedRestartState;
123 download_progress = 1; 124 download_progress = 1;
124 } else { 125 } else {
125 state = kNotAvailableState; 126 state = kNotAvailableState;
126 } 127 }
(...skipping 27 matching lines...) Expand all
154 155
155 void DispatchScreenUnlockedEvent() { 156 void DispatchScreenUnlockedEvent() {
156 DispatchEvent(system_private::OnScreenUnlocked::kEventName, NULL); 157 DispatchEvent(system_private::OnScreenUnlocked::kEventName, NULL);
157 } 158 }
158 159
159 void DispatchWokeUpEvent() { 160 void DispatchWokeUpEvent() {
160 DispatchEvent(system_private::OnWokeUp::kEventName, NULL); 161 DispatchEvent(system_private::OnWokeUp::kEventName, NULL);
161 } 162 }
162 163
163 } // namespace extensions 164 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/update_screen.cc ('k') | chrome/browser/ui/webui/help/version_updater_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698