| 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/profiles/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "chrome/browser/first_run/first_run.h" | 12 #include "chrome/browser/first_run/first_run.h" |
| 13 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
| 14 #include "chrome/browser/sync/profile_sync_service.h" | 14 #include "chrome/browser/sync/profile_sync_service.h" |
| 15 #include "chrome/browser/sync/profile_sync_service_factory.h" | 15 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 17 #include "components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h" | 17 #include "components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h" |
| 18 #include "components/pref_registry/pref_registry_syncable.h" |
| 18 #include "components/sync_driver/sync_prefs.h" | 19 #include "components/sync_driver/sync_prefs.h" |
| 19 #include "components/user_prefs/pref_registry_syncable.h" | |
| 20 #include "content/public/browser/notification_service.h" | 20 #include "content/public/browser/notification_service.h" |
| 21 #include "content/public/browser/notification_source.h" | 21 #include "content/public/browser/notification_source.h" |
| 22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
| 23 #include "content/public/browser/web_ui.h" | 23 #include "content/public/browser/web_ui.h" |
| 24 #include "extensions/browser/pref_names.h" | 24 #include "extensions/browser/pref_names.h" |
| 25 | 25 |
| 26 #if defined(OS_CHROMEOS) | 26 #if defined(OS_CHROMEOS) |
| 27 #include "base/command_line.h" | 27 #include "base/command_line.h" |
| 28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 29 #include "chromeos/chromeos_switches.h" | 29 #include "chromeos/chromeos_switches.h" |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 content::NotificationService::NoDetails()); | 220 content::NotificationService::NoDetails()); |
| 221 } | 221 } |
| 222 } | 222 } |
| 223 | 223 |
| 224 bool ProfileCompare::operator()(Profile* a, Profile* b) const { | 224 bool ProfileCompare::operator()(Profile* a, Profile* b) const { |
| 225 DCHECK(a && b); | 225 DCHECK(a && b); |
| 226 if (a->IsSameProfile(b)) | 226 if (a->IsSameProfile(b)) |
| 227 return false; | 227 return false; |
| 228 return a->GetOriginalProfile() < b->GetOriginalProfile(); | 228 return a->GetOriginalProfile() < b->GetOriginalProfile(); |
| 229 } | 229 } |
| OLD | NEW |