| OLD | NEW |
| 1 | 1 |
| 2 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include "components/update_client/updater_state.h" | 6 #include "components/update_client/updater_state.h" |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "build/build_config.h" |
| 14 | 15 |
| 15 namespace update_client { | 16 namespace update_client { |
| 16 | 17 |
| 17 const char UpdaterState::kDomainJoined[] = "domainjoined"; | 18 const char UpdaterState::kDomainJoined[] = "domainjoined"; |
| 18 | 19 |
| 19 UpdaterState::UpdaterState(bool is_machine) : is_machine_(is_machine) {} | 20 UpdaterState::UpdaterState(bool is_machine) : is_machine_(is_machine) {} |
| 20 | 21 |
| 21 UpdaterState::~UpdaterState() {} | 22 UpdaterState::~UpdaterState() {} |
| 22 | 23 |
| 23 std::unique_ptr<UpdaterState::Attributes> UpdaterState::GetState( | 24 std::unique_ptr<UpdaterState::Attributes> UpdaterState::GetState( |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 val = "408"; // 2 weeks in hours. | 84 val = "408"; // 2 weeks in hours. |
| 84 } else { | 85 } else { |
| 85 val = "1344"; // 2*28 days in hours. | 86 val = "1344"; // 2*28 days in hours. |
| 86 } | 87 } |
| 87 | 88 |
| 88 DCHECK(!val.empty()); | 89 DCHECK(!val.empty()); |
| 89 return val; | 90 return val; |
| 90 } | 91 } |
| 91 | 92 |
| 92 } // namespace update_client | 93 } // namespace update_client |
| OLD | NEW |