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

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

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.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.cc b/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.cc
index fc6b4174284904d6155dfda600112c9cee255526..a090f1939760911cb3bfa8c8d6a27eacfee8cd5b 100644
--- a/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.cc
+++ b/chrome/browser/chromeos/gdata/gdata_contacts_service_stub.cc
@@ -14,7 +14,8 @@ using content::BrowserThread;
namespace gdata {
GDataContactsServiceStub::GDataContactsServiceStub()
- : download_should_succeed_(true) {
+ : num_download_requests_(0),
+ download_should_succeed_(true) {
}
GDataContactsServiceStub::~GDataContactsServiceStub() {
@@ -35,6 +36,7 @@ void GDataContactsServiceStub::DownloadContacts(
FailureCallback failure_callback,
const base::Time& min_update_time) {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ num_download_requests_++;
if (!download_should_succeed_) {
failure_callback.Run();

Powered by Google App Engine
This is Rietveld 408576698