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

Side by Side Diff: rlz/lib/financial_ping.cc

Issue 12279015: Mac Chromium style checker cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 return true; 186 return true;
187 } 187 }
188 188
189 namespace { 189 namespace {
190 190
191 class FinancialPingUrlFetcherDelegate : public net::URLFetcherDelegate { 191 class FinancialPingUrlFetcherDelegate : public net::URLFetcherDelegate {
192 public: 192 public:
193 FinancialPingUrlFetcherDelegate(const base::Closure& callback) 193 FinancialPingUrlFetcherDelegate(const base::Closure& callback)
194 : callback_(callback) { 194 : callback_(callback) {
195 } 195 }
196 virtual void OnURLFetchComplete(const net::URLFetcher* source); 196 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
197 197
198 private: 198 private:
199 base::Closure callback_; 199 base::Closure callback_;
200 }; 200 };
201 201
202 void FinancialPingUrlFetcherDelegate::OnURLFetchComplete( 202 void FinancialPingUrlFetcherDelegate::OnURLFetchComplete(
203 const net::URLFetcher* source) { 203 const net::URLFetcher* source) {
204 callback_.Run(); 204 callback_.Run();
205 } 205 }
206 206
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 bool FinancialPing::ClearLastPingTime(Product product) { 350 bool FinancialPing::ClearLastPingTime(Product product) {
351 ScopedRlzValueStoreLock lock; 351 ScopedRlzValueStoreLock lock;
352 RlzValueStore* store = lock.GetStore(); 352 RlzValueStore* store = lock.GetStore();
353 if (!store || !store->HasAccess(RlzValueStore::kWriteAccess)) 353 if (!store || !store->HasAccess(RlzValueStore::kWriteAccess))
354 return false; 354 return false;
355 return store->ClearPingTime(product); 355 return store->ClearPingTime(product);
356 } 356 }
357 357
358 } // namespace 358 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698