| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_dependency_manager.h" | 5 #include "chrome/browser/profiles/profile_dependency_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <iterator> | 9 #include <iterator> |
| 10 | 10 |
| 11 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 11 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
| 12 #include "chrome/browser/background/background_contents_service_factory.h" | 12 #include "chrome/browser/background/background_contents_service_factory.h" |
| 13 #include "chrome/browser/extensions/extension_speech_input_manager.h" | 13 #include "chrome/browser/extensions/speech_input/extension_speech_input_manager.
h" |
| 14 #include "chrome/browser/plugin_prefs_factory.h" | 14 #include "chrome/browser/plugin_prefs_factory.h" |
| 15 #include "chrome/browser/prerender/prerender_manager_factory.h" | 15 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 16 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" | 16 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/profiles/profile_keyed_service.h" | 18 #include "chrome/browser/profiles/profile_keyed_service.h" |
| 19 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | 19 #include "chrome/browser/profiles/profile_keyed_service_factory.h" |
| 20 #include "chrome/browser/search_engines/template_url_service_factory.h" | 20 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 21 #include "chrome/browser/sessions/session_service_factory.h" | 21 #include "chrome/browser/sessions/session_service_factory.h" |
| 22 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 22 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
| 23 #include "content/common/notification_service.h" | 23 #include "content/common/notification_service.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 } | 205 } |
| 206 } | 206 } |
| 207 | 207 |
| 208 if (edges.size()) { | 208 if (edges.size()) { |
| 209 NOTREACHED() << "Dependency graph has a cycle. We are doomed."; | 209 NOTREACHED() << "Dependency graph has a cycle. We are doomed."; |
| 210 } | 210 } |
| 211 | 211 |
| 212 std::reverse(output.begin(), output.end()); | 212 std::reverse(output.begin(), output.end()); |
| 213 destruction_order_ = output; | 213 destruction_order_ = output; |
| 214 } | 214 } |
| OLD | NEW |