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/contact_manager.h" | 5 #include "chrome/browser/chromeos/contacts/contact_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/chromeos/contacts/contact.pb.h" | 10 #include "chrome/browser/chromeos/contacts/contact.pb.h" |
10 #include "chrome/browser/chromeos/contacts/contact_manager_observer.h" | 11 #include "chrome/browser/chromeos/contacts/contact_manager_observer.h" |
11 #include "chrome/browser/chromeos/contacts/contact_store.h" | 12 #include "chrome/browser/chromeos/contacts/contact_store.h" |
12 #include "chrome/browser/chromeos/contacts/google_contact_store.h" | 13 #include "chrome/browser/chromeos/contacts/google_contact_store.h" |
13 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
15 #include "chrome/common/chrome_notification_types.h" | |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 #include "content/public/browser/notification_service.h" | 17 #include "content/public/browser/notification_service.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 | 20 |
21 namespace contacts { | 21 namespace contacts { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Singleton instance. | 25 // Singleton instance. |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 } | 207 } |
208 | 208 |
209 ProfileObserversMap::iterator observer_it = profile_observers_.find(profile); | 209 ProfileObserversMap::iterator observer_it = profile_observers_.find(profile); |
210 if (observer_it != profile_observers_.end()) { | 210 if (observer_it != profile_observers_.end()) { |
211 delete observer_it->second; | 211 delete observer_it->second; |
212 profile_observers_.erase(observer_it); | 212 profile_observers_.erase(observer_it); |
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 } // namespace contacts | 216 } // namespace contacts |
OLD | NEW |