Index: components/feedback/feedback_uploader_chrome.cc |
diff --git a/components/feedback/feedback_uploader_chrome.cc b/components/feedback/feedback_uploader_chrome.cc |
index 75d6e90143af9325b762e629795cfbcaa66add4a..7ecbf030be40644202e4964b7895f123b8d984a3 100644 |
--- a/components/feedback/feedback_uploader_chrome.cc |
+++ b/components/feedback/feedback_uploader_chrome.cc |
@@ -33,9 +33,10 @@ FeedbackUploaderChrome::FeedbackUploaderChrome( |
BrowserThread::GetBlockingPool()), |
context_(context) { |
CHECK(context_); |
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kFeedbackServer)) |
- url_ = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
- switches::kFeedbackServer); |
+ const base::CommandLine& command_line = |
+ *base::CommandLine::ForCurrentProcess(); |
+ if (command_line.HasSwitch(switches::kFeedbackServer)) |
+ url_ = command_line.GetSwitchValueASCII(switches::kFeedbackServer); |
} |
void FeedbackUploaderChrome::DispatchReport(const std::string& data) { |