OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Library functions related to the Financial Server ping. | 5 // Library functions related to the Financial Server ping. |
6 | 6 |
7 #include "rlz/lib/financial_ping.h" | 7 #include "rlz/lib/financial_ping.h" |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "rlz/lib/assert.h" | 14 #include "rlz/lib/assert.h" |
15 #include "rlz/lib/lib_values.h" | 15 #include "rlz/lib/lib_values.h" |
16 #include "rlz/lib/machine_id.h" | 16 #include "rlz/lib/machine_id.h" |
17 #include "rlz/lib/rlz_lib.h" | 17 #include "rlz/lib/rlz_lib.h" |
18 #include "rlz/lib/rlz_value_store.h" | 18 #include "rlz/lib/rlz_value_store.h" |
19 #include "rlz/lib/string_utils.h" | 19 #include "rlz/lib/string_utils.h" |
20 | 20 |
21 #if !defined(OS_WIN) | 21 #if !defined(OS_WIN) |
22 #include "base/time.h" | 22 #include "base/time.h" |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 353 |
354 bool FinancialPing::ClearLastPingTime(Product product) { | 354 bool FinancialPing::ClearLastPingTime(Product product) { |
355 ScopedRlzValueStoreLock lock; | 355 ScopedRlzValueStoreLock lock; |
356 RlzValueStore* store = lock.GetStore(); | 356 RlzValueStore* store = lock.GetStore(); |
357 if (!store || !store->HasAccess(RlzValueStore::kWriteAccess)) | 357 if (!store || !store->HasAccess(RlzValueStore::kWriteAccess)) |
358 return false; | 358 return false; |
359 return store->ClearPingTime(product); | 359 return store->ClearPingTime(product); |
360 } | 360 } |
361 | 361 |
362 } // namespace | 362 } // namespace |
OLD | NEW |