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

Unified Diff: goopdate/update_request_utils.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/update_request_utils.h ('k') | goopdate/update_request_utils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: goopdate/update_request_utils.cc
diff --git a/goopdate/update_request_utils.cc b/goopdate/update_request_utils.cc
deleted file mode 100644
index ebfb565df34ad539a385185b6416cfb7352af433..0000000000000000000000000000000000000000
--- a/goopdate/update_request_utils.cc
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2010 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/update_request_utils.h"
-#include "omaha/base/logging.h"
-#include "omaha/goopdate/model.h"
-
-namespace omaha {
-
-namespace update_request_utils {
-
-void BuildRequest(const App* app,
- bool is_update_check,
- xml::UpdateRequest* update_request) {
- ASSERT1(app);
- ASSERT1(update_request);
-
- if (!is_update_check && app->ping_events().empty()) {
- return;
- }
-
- if (!app->is_eula_accepted()) {
- CORE_LOG(L3, (_T("[App EULA not accepted - not including app in ping][%s]"),
- app->app_guid_string()));
- return;
- }
-
- xml::request::App request_app;
-
- // Pick up the current and next versions.
- request_app.version = app->current_version()->version();
- request_app.next_version = app->next_version()->version();
-
- request_app.app_id = app->app_guid_string();
- request_app.lang = app->language();
- request_app.iid = GuidToString(app->iid());
- request_app.brand_code = app->brand_code();
- request_app.client_id = app->client_id();
- request_app.experiments = app->GetExperimentLabels();
- request_app.ap = app->ap();
-
- // referral_id is not sent.
-
- request_app.install_time_diff_sec = app->install_time_diff_sec();
- request_app.data.install_data_index = app->server_install_data_index();
-
- if (is_update_check) {
- request_app.ping.active = app->did_run();
- request_app.ping.days_since_last_active_ping =
- app->days_since_last_active_ping();
- request_app.ping.days_since_last_roll_call =
- app->days_since_last_roll_call();
-
- request_app.update_check.is_valid = true;
- request_app.update_check.is_update_disabled =
- FAILED(app->CheckGroupPolicy());
- request_app.update_check.tt_token = app->tt_token();
- }
-
- request_app.ping_events = app->ping_events();
-
- update_request->AddApp(request_app);
-}
-
-} // namespace update_request_utils
-
-} // namespace omaha
« no previous file with comments | « goopdate/update_request_utils.h ('k') | goopdate/update_request_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698