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

Unified Diff: chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h

Issue 10829247: contacts: Defer updates when offline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h
diff --git a/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h b/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h
index e133243778a0266612ce24b1b3aef8d5a2dc077d..b57cc6c47326931dbe02c99146d0d029ffba954d 100644
--- a/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h
+++ b/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h
@@ -24,6 +24,8 @@ class GDataContactsServiceStub : public GDataContactsServiceInterface {
GDataContactsServiceStub();
virtual ~GDataContactsServiceStub();
+ int num_download_requests() const { return num_download_requests_; }
+ void reset_stats() { num_download_requests_ = 0; }
void set_download_should_succeed(bool succeed) {
download_should_succeed_ = succeed;
}
@@ -40,6 +42,9 @@ class GDataContactsServiceStub : public GDataContactsServiceInterface {
const base::Time& min_update_time) OVERRIDE;
private:
+ // How many times has DownloadContacts() been called?
+ int num_download_requests_;
+
// Should calls to DownloadContacts() succeed?
bool download_should_succeed_;

Powered by Google App Engine
This is Rietveld 408576698