| Index: components/browser_context_keyed_service/browser_context_dependency_manager.cc
|
| diff --git a/components/browser_context_keyed_service/browser_context_dependency_manager.cc b/components/browser_context_keyed_service/browser_context_dependency_manager.cc
|
| index b2af4936f3695770229fc46ca5dfb2745177645d..1031f4e831026d376c47f35bac56e52cd304d636 100644
|
| --- a/components/browser_context_keyed_service/browser_context_dependency_manager.cc
|
| +++ b/components/browser_context_keyed_service/browser_context_dependency_manager.cc
|
| @@ -16,8 +16,12 @@
|
| #ifndef NDEBUG
|
| #include "base/command_line.h"
|
| #include "base/file_util.h"
|
| -#include "content/public/common/content_switches.h"
|
| -#endif
|
| +
|
| +// Dumps dependency information about our browser context keyed services
|
| +// into a dot file in the browser context directory.
|
| +const char kDumpBrowserContextDependencyGraphFlag[] =
|
| + "dump-browser-context-graph";
|
| +#endif // NDEBUG
|
|
|
| void BrowserContextDependencyManager::AddComponent(
|
| BrowserContextKeyedBaseFactory* component) {
|
| @@ -143,7 +147,7 @@ void BrowserContextDependencyManager::DumpBrowserContextDependencies(
|
| // Whenever we try to build a destruction ordering, we should also dump a
|
| // dependency graph to "/path/to/context/context-dependencies.dot".
|
| if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kDumpBrowserContextDependencyGraph)) {
|
| + kDumpBrowserContextDependencyGraphFlag)) {
|
| base::FilePath dot_file =
|
| context->GetPath().AppendASCII("browser-context-dependencies.dot");
|
| std::string contents = dependency_graph_.DumpAsGraphviz(
|
|
|