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 |