Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: chrome/browser/profiles/profile_dependency_manager.cc

Issue 9235004: [Garbled Text][Infobar] Adding infobar to suggest turning on encoding detection. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_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/autocomplete/network_action_predictor_factory.h" 11 #include "chrome/browser/autocomplete/network_action_predictor_factory.h"
12 #include "chrome/browser/autofill/personal_data_manager_factory.h" 12 #include "chrome/browser/autofill/personal_data_manager_factory.h"
13 #include "chrome/browser/background/background_contents_service_factory.h" 13 #include "chrome/browser/background/background_contents_service_factory.h"
14 #include "chrome/browser/content_settings/cookie_settings.h" 14 #include "chrome/browser/content_settings/cookie_settings.h"
15 #include "chrome/browser/download/download_service_factory.h" 15 #include "chrome/browser/download/download_service_factory.h"
16 #include "chrome/browser/garbled_text_service.h"
16 #include "chrome/browser/intents/web_intents_registry_factory.h" 17 #include "chrome/browser/intents/web_intents_registry_factory.h"
17 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 18 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
18 #include "chrome/browser/plugin_prefs_factory.h" 19 #include "chrome/browser/plugin_prefs_factory.h"
19 #include "chrome/browser/prerender/prerender_manager_factory.h" 20 #include "chrome/browser/prerender/prerender_manager_factory.h"
20 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 21 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
21 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/profiles/profile_keyed_service.h" 23 #include "chrome/browser/profiles/profile_keyed_service.h"
23 #include "chrome/browser/profiles/profile_keyed_service_factory.h" 24 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
24 #include "chrome/browser/protector/protector_service_factory.h" 25 #include "chrome/browser/protector/protector_service_factory.h"
25 #include "chrome/browser/search_engines/template_url_service_factory.h" 26 #include "chrome/browser/search_engines/template_url_service_factory.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 protector::ProtectorServiceFactory::GetInstance(); 178 protector::ProtectorServiceFactory::GetInstance();
178 prerender::PrerenderManagerFactory::GetInstance(); 179 prerender::PrerenderManagerFactory::GetInstance();
179 ProfileSyncServiceFactory::GetInstance(); 180 ProfileSyncServiceFactory::GetInstance();
180 SessionServiceFactory::GetInstance(); 181 SessionServiceFactory::GetInstance();
181 SigninManagerFactory::GetInstance(); 182 SigninManagerFactory::GetInstance();
182 SpeechInputExtensionManager::InitializeFactory(); 183 SpeechInputExtensionManager::InitializeFactory();
183 TabRestoreServiceFactory::GetInstance(); 184 TabRestoreServiceFactory::GetInstance();
184 ThemeServiceFactory::GetInstance(); 185 ThemeServiceFactory::GetInstance();
185 TemplateURLServiceFactory::GetInstance(); 186 TemplateURLServiceFactory::GetInstance();
186 WebIntentsRegistryFactory::GetInstance(); 187 WebIntentsRegistryFactory::GetInstance();
188 GarbledTextServiceFactory::GetInstance();
187 189
188 built_factories_ = true; 190 built_factories_ = true;
189 } 191 }
190 192
191 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { 193 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) {
192 #if !defined(NDEBUG) 194 #if !defined(NDEBUG)
193 // Whenever we try to build a destruction ordering, we should also dump a 195 // Whenever we try to build a destruction ordering, we should also dump a
194 // dependency graph to "/path/to/profile/profile-dependencies.dot". 196 // dependency graph to "/path/to/profile/profile-dependencies.dot".
195 if (CommandLine::ForCurrentProcess()->HasSwitch( 197 if (CommandLine::ForCurrentProcess()->HasSwitch(
196 switches::kDumpProfileDependencyGraph)) { 198 switches::kDumpProfileDependencyGraph)) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 293 }
292 294
293 result.append("\n /* Toplevel profile */\n"); 295 result.append("\n /* Toplevel profile */\n");
294 result.append(" Profile [shape=box];\n"); 296 result.append(" Profile [shape=box];\n");
295 297
296 result.append("}\n"); 298 result.append("}\n");
297 return result; 299 return result;
298 } 300 }
299 301
300 #endif 302 #endif
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_io_data.cc ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698