Index: goopdate/app_state_downloading.cc |
diff --git a/goopdate/app_state_downloading.cc b/goopdate/app_state_downloading.cc |
deleted file mode 100644 |
index 6dc4cc11c711596f924b9f2978c28d35c362970a..0000000000000000000000000000000000000000 |
--- a/goopdate/app_state_downloading.cc |
+++ /dev/null |
@@ -1,56 +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_downloading.h" |
-#include "omaha/base/debug.h" |
-#include "omaha/base/logging.h" |
-#include "omaha/goopdate/app_state_download_complete.h" |
-#include "omaha/goopdate/model.h" |
- |
-namespace omaha { |
- |
-namespace fsm { |
- |
-AppStateDownloading::AppStateDownloading() |
- : AppState(STATE_DOWNLOADING) { |
-} |
- |
-const PingEvent* AppStateDownloading::CreatePingEvent( |
- App* app, |
- CurrentState previous_state) const { |
- ASSERT1(app); |
- UNREFERENCED_PARAMETER(previous_state); |
- |
- const PingEvent::Types event_type(app->is_update() ? |
- PingEvent::EVENT_UPDATE_DOWNLOAD_START : |
- PingEvent::EVENT_INSTALL_DOWNLOAD_START); |
- |
- const HRESULT error_code = app->error_code(); |
- ASSERT1(SUCCEEDED(error_code)); |
- |
- return new PingEvent(event_type, GetCompletionResult(*app), error_code, 0); |
-} |
- |
-void AppStateDownloading::DownloadComplete(App* app) { |
- CORE_LOG(L3, (_T("[AppStateDownloading::DownloadComplete][%p]"), app)); |
- ASSERT1(app); |
- |
- app->SetDownloadCompleteTime(); |
- ChangeState(app, new AppStateDownloadComplete); |
-} |
- |
-} // namespace fsm |
- |
-} // namespace omaha |