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

Unified Diff: components/feedback/feedback_uploader_chrome.cc

Issue 774933004: Prefix CommandLine usage with base namespace (Part 9: components) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | components/gcm_driver/gcm_channel_status_syncer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | components/gcm_driver/gcm_channel_status_syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698