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

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

Issue 14636012: Move ShellWindowGeometryCache into apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: PKS dependency Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "apps/app_restore_service_factory.h" 11 #include "apps/app_restore_service_factory.h"
12 #include "apps/shell_window_geometry_cache.h"
12 #include "apps/shortcut_manager_factory.h" 13 #include "apps/shortcut_manager_factory.h"
13 #include "chrome/browser/autofill/autocheckout_whitelist_manager_factory.h" 14 #include "chrome/browser/autofill/autocheckout_whitelist_manager_factory.h"
14 #include "chrome/browser/autofill/personal_data_manager_factory.h" 15 #include "chrome/browser/autofill/personal_data_manager_factory.h"
15 #include "chrome/browser/background/background_contents_service_factory.h" 16 #include "chrome/browser/background/background_contents_service_factory.h"
16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 17 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
17 #include "chrome/browser/content_settings/cookie_settings.h" 18 #include "chrome/browser/content_settings/cookie_settings.h"
18 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" 19 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
19 #include "chrome/browser/download/download_service_factory.h" 20 #include "chrome/browser/download/download_service_factory.h"
20 #include "chrome/browser/extensions/activity_log.h" 21 #include "chrome/browser/extensions/activity_log.h"
21 #include "chrome/browser/extensions/api/alarms/alarm_manager.h" 22 #include "chrome/browser/extensions/api/alarms/alarm_manager.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 #if defined(ENABLE_PRINTING) 261 #if defined(ENABLE_PRINTING)
261 CloudPrintProxyServiceFactory::GetInstance(); 262 CloudPrintProxyServiceFactory::GetInstance();
262 #endif 263 #endif
263 CookieSettings::Factory::GetInstance(); 264 CookieSettings::Factory::GetInstance();
264 #if defined(ENABLE_NOTIFICATIONS) 265 #if defined(ENABLE_NOTIFICATIONS)
265 DesktopNotificationServiceFactory::GetInstance(); 266 DesktopNotificationServiceFactory::GetInstance();
266 #endif 267 #endif
267 DownloadServiceFactory::GetInstance(); 268 DownloadServiceFactory::GetInstance();
268 #if defined(ENABLE_EXTENSIONS) 269 #if defined(ENABLE_EXTENSIONS)
269 apps::AppRestoreServiceFactory::GetInstance(); 270 apps::AppRestoreServiceFactory::GetInstance();
271 apps::ShellWindowGeometryCache::Factory::GetInstance();
270 apps::ShortcutManagerFactory::GetInstance(); 272 apps::ShortcutManagerFactory::GetInstance();
271 autofill::autocheckout::WhitelistManagerFactory::GetInstance(); 273 autofill::autocheckout::WhitelistManagerFactory::GetInstance();
272 extensions::ActivityLogFactory::GetInstance(); 274 extensions::ActivityLogFactory::GetInstance();
273 extensions::AlarmManager::GetFactoryInstance(); 275 extensions::AlarmManager::GetFactoryInstance();
274 extensions::AudioAPI::GetFactoryInstance(); 276 extensions::AudioAPI::GetFactoryInstance();
275 extensions::BookmarksAPI::GetFactoryInstance(); 277 extensions::BookmarksAPI::GetFactoryInstance();
276 extensions::BluetoothAPIFactory::GetInstance(); 278 extensions::BluetoothAPIFactory::GetInstance();
277 extensions::CommandService::GetFactoryInstance(); 279 extensions::CommandService::GetFactoryInstance();
278 extensions::CookiesAPI::GetFactoryInstance(); 280 extensions::CookiesAPI::GetFactoryInstance();
279 extensions::DialAPIFactory::GetInstance(); 281 extensions::DialAPIFactory::GetInstance();
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 if (CommandLine::ForCurrentProcess()->HasSwitch( 401 if (CommandLine::ForCurrentProcess()->HasSwitch(
400 switches::kDumpProfileDependencyGraph)) { 402 switches::kDumpProfileDependencyGraph)) {
401 base::FilePath dot_file = 403 base::FilePath dot_file =
402 profile->GetPath().AppendASCII("profile-dependencies.dot"); 404 profile->GetPath().AppendASCII("profile-dependencies.dot");
403 std::string contents = dependency_graph_.DumpAsGraphviz( 405 std::string contents = dependency_graph_.DumpAsGraphviz(
404 "Profile", base::Bind(&ProfileKeyedBaseFactoryGetNodeName)); 406 "Profile", base::Bind(&ProfileKeyedBaseFactoryGetNodeName));
405 file_util::WriteFile(dot_file, contents.c_str(), contents.size()); 407 file_util::WriteFile(dot_file, contents.c_str(), contents.size());
406 } 408 }
407 } 409 }
408 #endif // NDEBUG 410 #endif // NDEBUG
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698