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

Side by Side Diff: components/update_client/updater_state.cc

Issue 2656713009: Merged to M57. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/update_client/update_checker_unittest.cc ('k') | components/update_client/updater_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698