| 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 #include "chrome/browser/chromeos/contacts/google_contact_store.h" | 5 #include "chrome/browser/chromeos/contacts/google_contact_store.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "chrome/browser/chromeos/contacts/contact.pb.h" | 12 #include "chrome/browser/chromeos/contacts/contact.pb.h" |
| 13 #include "chrome/browser/chromeos/contacts/contact_database.h" | 13 #include "chrome/browser/chromeos/contacts/contact_database.h" |
| 14 #include "chrome/browser/chromeos/contacts/contact_store_observer.h" | 14 #include "chrome/browser/chromeos/contacts/contact_store_observer.h" |
| 15 #include "chrome/browser/chromeos/gdata/gdata_contacts_service.h" | 15 #include "chrome/browser/chromeos/gdata/gdata_contacts_service.h" |
| 16 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 16 #include "chrome/browser/google_apis/gdata_util.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 19 | 19 |
| 20 using content::BrowserThread; | 20 using content::BrowserThread; |
| 21 | 21 |
| 22 namespace contacts { | 22 namespace contacts { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 // Name of the directory within the profile directory where the contact database | 26 // Name of the directory within the profile directory where the contact database |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 return gdata::util::IsGDataAvailable(profile); | 370 return gdata::util::IsGDataAvailable(profile); |
| 371 } | 371 } |
| 372 | 372 |
| 373 ContactStore* GoogleContactStoreFactory::CreateContactStore(Profile* profile) { | 373 ContactStore* GoogleContactStoreFactory::CreateContactStore(Profile* profile) { |
| 374 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 374 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 375 DCHECK(CanCreateContactStoreForProfile(profile)); | 375 DCHECK(CanCreateContactStoreForProfile(profile)); |
| 376 return new GoogleContactStore(profile); | 376 return new GoogleContactStore(profile); |
| 377 } | 377 } |
| 378 | 378 |
| 379 } // namespace contacts | 379 } // namespace contacts |
| OLD | NEW |