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

Unified Diff: content/common/debug_flags.cc

Issue 11235068: Move the remaning files in content\common to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | « content/common/debug_flags.h ('k') | content/common/font_cache_dispatcher_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/debug_flags.cc
===================================================================
--- content/common/debug_flags.cc (revision 163632)
+++ content/common/debug_flags.cc (working copy)
@@ -10,9 +10,11 @@
#include "content/public/common/content_switches.h"
#include "ipc/ipc_switches.h"
-bool DebugFlags::ProcessDebugFlags(CommandLine* command_line,
- content::ProcessType type,
- bool is_in_sandbox) {
+namespace content {
+
+bool ProcessDebugFlags(CommandLine* command_line,
+ ProcessType type,
+ bool is_in_sandbox) {
bool should_help_child = false;
const CommandLine& current_cmd_line = *CommandLine::ForCurrentProcess();
if (current_cmd_line.HasSwitch(switches::kDebugChildren)) {
@@ -20,11 +22,11 @@
std::string value = current_cmd_line.GetSwitchValueASCII(
switches::kDebugChildren);
if (value.empty() ||
- (type == content::PROCESS_TYPE_WORKER &&
+ (type == PROCESS_TYPE_WORKER &&
value == switches::kWorkerProcess) ||
- (type == content::PROCESS_TYPE_RENDERER &&
+ (type == PROCESS_TYPE_RENDERER &&
value == switches::kRendererProcess) ||
- (type == content::PROCESS_TYPE_PLUGIN &&
+ (type == PROCESS_TYPE_PLUGIN &&
value == switches::kPluginProcess)) {
command_line->AppendSwitch(switches::kDebugOnStart);
should_help_child = true;
@@ -35,11 +37,11 @@
std::string value = current_cmd_line.GetSwitchValueASCII(
switches::kWaitForDebuggerChildren);
if (value.empty() ||
- (type == content::PROCESS_TYPE_WORKER &&
+ (type == PROCESS_TYPE_WORKER &&
value == switches::kWorkerProcess) ||
- (type == content::PROCESS_TYPE_RENDERER &&
+ (type == PROCESS_TYPE_RENDERER &&
value == switches::kRendererProcess) ||
- (type == content::PROCESS_TYPE_PLUGIN &&
+ (type == PROCESS_TYPE_PLUGIN &&
value == switches::kPluginProcess)) {
command_line->AppendSwitch(switches::kWaitForDebugger);
}
@@ -47,3 +49,5 @@
}
return should_help_child;
}
+
+} // namespace content
« no previous file with comments | « content/common/debug_flags.h ('k') | content/common/font_cache_dispatcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698