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

Side by Side Diff: chrome/browser/metrics/metrics_log.cc

Issue 5685007: Rename all methods accessing Singleton<T> as GetInstance(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/gpu_process_host_ui_shim.cc ('k') | chrome/browser/net/metadata_url_request.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/metrics/metrics_log.h" 5 #include "chrome/browser/metrics/metrics_log.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 { 293 {
294 OPEN_ELEMENT_FOR_SCOPE("os"); 294 OPEN_ELEMENT_FOR_SCOPE("os");
295 WriteAttribute("name", 295 WriteAttribute("name",
296 base::SysInfo::OperatingSystemName()); 296 base::SysInfo::OperatingSystemName());
297 WriteAttribute("version", 297 WriteAttribute("version",
298 base::SysInfo::OperatingSystemVersion()); 298 base::SysInfo::OperatingSystemVersion());
299 } 299 }
300 300
301 { 301 {
302 OPEN_ELEMENT_FOR_SCOPE("gpu"); 302 OPEN_ELEMENT_FOR_SCOPE("gpu");
303 WriteIntAttribute("vendorid", 303 WriteIntAttribute(
304 GpuProcessHostUIShim::Get()->gpu_info().vendor_id()); 304 "vendorid",
305 WriteIntAttribute("deviceid", 305 GpuProcessHostUIShim::GetInstance()->gpu_info().vendor_id());
306 GpuProcessHostUIShim::Get()->gpu_info().device_id()); 306 WriteIntAttribute(
307 "deviceid",
308 GpuProcessHostUIShim::GetInstance()->gpu_info().device_id());
307 } 309 }
308 310
309 { 311 {
310 OPEN_ELEMENT_FOR_SCOPE("display"); 312 OPEN_ELEMENT_FOR_SCOPE("display");
311 int width = 0; 313 int width = 0;
312 int height = 0; 314 int height = 0;
313 base::SysInfo::GetPrimaryDisplayDimensions(&width, &height); 315 base::SysInfo::GetPrimaryDisplayDimensions(&width, &height);
314 WriteIntAttribute("xsize", width); 316 WriteIntAttribute("xsize", width);
315 WriteIntAttribute("ysize", height); 317 WriteIntAttribute("ysize", height);
316 WriteIntAttribute("screens", base::SysInfo::DisplayCount()); 318 WriteIntAttribute("screens", base::SysInfo::DisplayCount());
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 const std::string result_type(AutocompleteMatch::TypeToString(i->type)); 447 const std::string result_type(AutocompleteMatch::TypeToString(i->type));
446 if (!result_type.empty()) 448 if (!result_type.empty())
447 WriteAttribute("resulttype", result_type); 449 WriteAttribute("resulttype", result_type);
448 WriteIntAttribute("relevance", i->relevance); 450 WriteIntAttribute("relevance", i->relevance);
449 WriteIntAttribute("isstarred", i->starred ? 1 : 0); 451 WriteIntAttribute("isstarred", i->starred ? 1 : 0);
450 } 452 }
451 } 453 }
452 454
453 ++num_events_; 455 ++num_events_;
454 } 456 }
OLDNEW
« no previous file with comments | « chrome/browser/gpu_process_host_ui_shim.cc ('k') | chrome/browser/net/metadata_url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698