| 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_api/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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 return gdata::util::IsGDataAvailable(profile); | 403 return gdata::util::IsGDataAvailable(profile); |
| 404 } | 404 } |
| 405 | 405 |
| 406 ContactStore* GoogleContactStoreFactory::CreateContactStore(Profile* profile) { | 406 ContactStore* GoogleContactStoreFactory::CreateContactStore(Profile* profile) { |
| 407 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 407 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 408 DCHECK(CanCreateContactStoreForProfile(profile)); | 408 DCHECK(CanCreateContactStoreForProfile(profile)); |
| 409 return new GoogleContactStore(profile); | 409 return new GoogleContactStore(profile); |
| 410 } | 410 } |
| 411 | 411 |
| 412 } // namespace contacts | 412 } // namespace contacts |
| OLD | NEW |