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

Unified Diff: components/browser_context_keyed_service/browser_context_dependency_manager.cc

Issue 16362004: Move a BrowserContextKeyedService-specific switch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698