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" |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 | 345 |
346 bool FinancialPing::ClearLastPingTime(Product product) { | 346 bool FinancialPing::ClearLastPingTime(Product product) { |
347 ScopedRlzValueStoreLock lock; | 347 ScopedRlzValueStoreLock lock; |
348 RlzValueStore* store = lock.GetStore(); | 348 RlzValueStore* store = lock.GetStore(); |
349 if (!store || !store->HasAccess(RlzValueStore::kWriteAccess)) | 349 if (!store || !store->HasAccess(RlzValueStore::kWriteAccess)) |
350 return false; | 350 return false; |
351 return store->ClearPingTime(product); | 351 return store->ClearPingTime(product); |
352 } | 352 } |
353 | 353 |
354 } // namespace | 354 } // namespace |
OLD | NEW |