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

Unified Diff: goopdate/app_state_downloading.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_downloading.h ('k') | goopdate/app_state_error.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « goopdate/app_state_downloading.h ('k') | goopdate/app_state_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698