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

Unified Diff: goopdate/app_state_installing.cc

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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 | « goopdate/app_state_installing.h ('k') | goopdate/app_state_no_update.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: goopdate/app_state_installing.cc
diff --git a/goopdate/app_state_installing.cc b/goopdate/app_state_installing.cc
deleted file mode 100644
index c9ac9f71e30e4fa162a4af4c7cf39e40908e96aa..0000000000000000000000000000000000000000
--- a/goopdate/app_state_installing.cc
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright 2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-
-#include "omaha/goopdate/app_state_installing.h"
-#include "omaha/base/debug.h"
-#include "omaha/base/logging.h"
-#include "omaha/goopdate/app_state_error.h"
-#include "omaha/goopdate/app_state_install_complete.h"
-#include "omaha/goopdate/model.h"
-
-namespace omaha {
-
-namespace fsm {
-
-AppStateInstalling::AppStateInstalling()
- : AppState(STATE_INSTALLING) {
-}
-
-const PingEvent* AppStateInstalling::CreatePingEvent(
- App* app,
- CurrentState previous_state) const {
- ASSERT1(app);
- UNREFERENCED_PARAMETER(previous_state);
-
- const PingEvent::Types event_type(app->is_update() ?
- PingEvent::EVENT_UPDATE_INSTALLER_START :
- PingEvent::EVENT_INSTALL_INSTALLER_START);
-
-
- const HRESULT error_code = app->error_code();
- ASSERT1(SUCCEEDED(error_code));
-
- return new PingEvent(event_type, GetCompletionResult(*app), error_code, 0);
-}
-
-// The state does not change if already in the Installing state.
-void AppStateInstalling::Installing(App* app) {
- CORE_LOG(L3, (_T("[AppStateInstalling::Installing][0x%p]"), app));
- ASSERT1(app);
- ASSERT(false, (_T("This might be valid when we support install progress.")));
-
- UNREFERENCED_PARAMETER(app);
-}
-
-void AppStateInstalling::ReportInstallerComplete(
- App* app,
- const InstallerResultInfo& result_info) {
- CORE_LOG(L3, (_T("[AppStateInstalling::ReportInstallerComplete][%p]"), app));
- ASSERT1(app);
-
- app->SetInstallerResult(result_info);
-
- ChangeState(app, result_info.type == INSTALLER_RESULT_SUCCESS ?
- static_cast<AppState*>(new AppStateInstallComplete(app)) :
- static_cast<AppState*>(new AppStateError));
-}
-
-// Cancel in installing state has no effect because currently we cannot cancel
-// installers.. Override the function to avoid moving app into error state.
-// The app will automatically enter the completion state when the installer
-// completes.
-void AppStateInstalling::Cancel(App* app) {
- CORE_LOG(L3, (_T("[AppStateInstalling::Cancel][0x%p]"), app));
- ASSERT1(app);
-
- UNREFERENCED_PARAMETER(app);
-}
-
-} // namespace fsm
-
-} // namespace omaha
« no previous file with comments | « goopdate/app_state_installing.h ('k') | goopdate/app_state_no_update.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698