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

Side by Side Diff: content/browser/gpu/gpu_internals_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/gpu/gpu_internals_ui.h" 5 #include "content/browser/gpu/gpu_internals_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 } 321 }
322 322
323 base::Value* GpuMessageHandler::OnRequestClientInfo( 323 base::Value* GpuMessageHandler::OnRequestClientInfo(
324 const base::ListValue* list) { 324 const base::ListValue* list) {
325 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 325 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
326 326
327 base::DictionaryValue* dict = new base::DictionaryValue(); 327 base::DictionaryValue* dict = new base::DictionaryValue();
328 328
329 dict->SetString("version", GetContentClient()->GetProduct()); 329 dict->SetString("version", GetContentClient()->GetProduct());
330 dict->SetString("command_line", 330 dict->SetString("command_line",
331 CommandLine::ForCurrentProcess()->GetCommandLineString()); 331 base::CommandLine::ForCurrentProcess()->GetCommandLineString());
332 dict->SetString("operating_system", 332 dict->SetString("operating_system",
333 base::SysInfo::OperatingSystemName() + " " + 333 base::SysInfo::OperatingSystemName() + " " +
334 base::SysInfo::OperatingSystemVersion()); 334 base::SysInfo::OperatingSystemVersion());
335 dict->SetString("angle_commit_id", ANGLE_COMMIT_HASH); 335 dict->SetString("angle_commit_id", ANGLE_COMMIT_HASH);
336 dict->SetString("graphics_backend", "Skia"); 336 dict->SetString("graphics_backend", "Skia");
337 dict->SetString("blacklist_version", 337 dict->SetString("blacklist_version",
338 GpuDataManagerImpl::GetInstance()->GetBlacklistVersion()); 338 GpuDataManagerImpl::GetInstance()->GetBlacklistVersion());
339 dict->SetString("driver_bug_list_version", 339 dict->SetString("driver_bug_list_version",
340 GpuDataManagerImpl::GetInstance()->GetDriverBugListVersion()); 340 GpuDataManagerImpl::GetInstance()->GetDriverBugListVersion());
341 341
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 : WebUIController(web_ui) { 382 : WebUIController(web_ui) {
383 web_ui->AddMessageHandler(new GpuMessageHandler()); 383 web_ui->AddMessageHandler(new GpuMessageHandler());
384 384
385 // Set up the chrome://gpu/ source. 385 // Set up the chrome://gpu/ source.
386 BrowserContext* browser_context = 386 BrowserContext* browser_context =
387 web_ui->GetWebContents()->GetBrowserContext(); 387 web_ui->GetWebContents()->GetBrowserContext();
388 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); 388 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource());
389 } 389 }
390 390
391 } // namespace content 391 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private_unittest.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698