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

Side by Side Diff: content/browser/tracing/tracing_ui.cc

Issue 456513002: Add base:: qualification to some CommandLine references in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: imerge Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/tracing/tracing_ui.h" 5 #include "content/browser/tracing/tracing_ui.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 TracingUI::~TracingUI() { 310 TracingUI::~TracingUI() {
311 TracingControllerImpl::GetInstance()->UnregisterTracingUI(this); 311 TracingControllerImpl::GetInstance()->UnregisterTracingUI(this);
312 } 312 }
313 313
314 void TracingUI::OnMonitoringStateChanged(bool is_monitoring) { 314 void TracingUI::OnMonitoringStateChanged(bool is_monitoring) {
315 web_ui()->CallJavascriptFunction( 315 web_ui()->CallJavascriptFunction(
316 "onMonitoringStateChanged", base::FundamentalValue(is_monitoring)); 316 "onMonitoringStateChanged", base::FundamentalValue(is_monitoring));
317 } 317 }
318 318
319 void TracingUI::DoUpload(const base::ListValue* args) { 319 void TracingUI::DoUpload(const base::ListValue* args) {
320 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 320 const base::CommandLine& command_line =
321 *base::CommandLine::ForCurrentProcess();
321 std::string upload_url = kUploadURL; 322 std::string upload_url = kUploadURL;
322 if (command_line.HasSwitch(switches::kTraceUploadURL)) { 323 if (command_line.HasSwitch(switches::kTraceUploadURL)) {
323 upload_url = 324 upload_url =
324 command_line.GetSwitchValueASCII(switches::kTraceUploadURL); 325 command_line.GetSwitchValueASCII(switches::kTraceUploadURL);
325 } 326 }
326 if (!GURL(upload_url).is_valid()) { 327 if (!GURL(upload_url).is_valid()) {
327 upload_url.clear(); 328 upload_url.clear();
328 } 329 }
329 330
330 if (upload_url.empty()) { 331 if (upload_url.empty()) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 if (success) { 405 if (success) {
405 web_ui()->CallJavascriptFunction("onUploadComplete", 406 web_ui()->CallJavascriptFunction("onUploadComplete",
406 base::StringValue(report_id)); 407 base::StringValue(report_id));
407 } else { 408 } else {
408 web_ui()->CallJavascriptFunction("onUploadError", 409 web_ui()->CallJavascriptFunction("onUploadError",
409 base::StringValue(error_message)); 410 base::StringValue(error_message));
410 } 411 }
411 } 412 }
412 413
413 } // namespace content 414 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/site_instance_impl_unittest.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698