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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_contacts_service.cc

Issue 10939011: Reland "Revert 156830 - drive: Stop exposing operation_registry() from DriveServiceInterface" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 #include "chrome/browser/chromeos/gdata/gdata_contacts_service.h" 5 #include "chrome/browser/chromeos/gdata/gdata_contacts_service.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/json/json_value_converter.h" 12 #include "base/json/json_value_converter.h"
13 #include "base/json/json_writer.h" 13 #include "base/json/json_writer.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
17 #include "base/stl_util.h" 17 #include "base/stl_util.h"
18 #include "base/string_util.h" 18 #include "base/string_util.h"
19 #include "base/time.h" 19 #include "base/time.h"
20 #include "base/timer.h" 20 #include "base/timer.h"
21 #include "base/values.h" 21 #include "base/values.h"
22 #include "chrome/browser/chromeos/contacts/contact.pb.h" 22 #include "chrome/browser/chromeos/contacts/contact.pb.h"
23 #include "chrome/browser/google_apis/gdata_errorcode.h" 23 #include "chrome/browser/google_apis/gdata_errorcode.h"
24 #include "chrome/browser/google_apis/gdata_operations.h" 24 #include "chrome/browser/google_apis/gdata_operations.h"
25 #include "chrome/browser/google_apis/gdata_util.h" 25 #include "chrome/browser/google_apis/gdata_util.h"
26 #include "chrome/browser/google_apis/operation_registry.h"
27 #include "chrome/browser/google_apis/operation_runner.h" 26 #include "chrome/browser/google_apis/operation_runner.h"
28 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
29 28
30 using content::BrowserThread; 29 using content::BrowserThread;
31 30
32 namespace gdata { 31 namespace gdata {
33 32
34 namespace { 33 namespace {
35 34
36 // Download outcomes reported via the "Contacts.FullUpdateResult" and 35 // Download outcomes reported via the "Contacts.FullUpdateResult" and
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 891 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
893 DCHECK(request); 892 DCHECK(request);
894 VLOG(1) << "Download request " << request << " complete"; 893 VLOG(1) << "Download request " << request << " complete";
895 if (!request->my_contacts_group_id().empty()) 894 if (!request->my_contacts_group_id().empty())
896 cached_my_contacts_group_id_ = request->my_contacts_group_id(); 895 cached_my_contacts_group_id_ = request->my_contacts_group_id();
897 requests_.erase(request); 896 requests_.erase(request);
898 delete request; 897 delete request;
899 } 898 }
900 899
901 } // namespace contacts 900 } // namespace contacts
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_service_interface.h ('k') | chrome/browser/chromeos/gdata/gdata_wapi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698