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

Side by Side Diff: chrome/browser/metrics/metrics_service.h

Issue 108683003: Store gpu crashes in the systemprofileproto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Alexei comments1 Created 7 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
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 // This file defines a service that collects information about the user 5 // This file defines a service that collects information about the user
6 // experience in order to help improve future versions of the app. 6 // experience in order to help improve future versions of the app.
7 7
8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
10 10
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 450
451 // Returns true if process of type |type| should be counted as a plugin 451 // Returns true if process of type |type| should be counted as a plugin
452 // process, and false otherwise. 452 // process, and false otherwise.
453 static bool IsPluginProcess(int process_type); 453 static bool IsPluginProcess(int process_type);
454 454
455 // Returns a list of synthetic field trials that were active for the entire 455 // Returns a list of synthetic field trials that were active for the entire
456 // duration of the current log. 456 // duration of the current log.
457 void GetCurrentSyntheticFieldTrials( 457 void GetCurrentSyntheticFieldTrials(
458 std::vector<chrome_variations::ActiveGroupId>* synthetic_trials); 458 std::vector<chrome_variations::ActiveGroupId>* synthetic_trials);
459 459
460 // Call when there is a crash in the GPU process.
Alexei Svitkine (slow) 2013/12/16 16:04:28 Nit: "Records a GPU process crash." I'd also move
rkaplow 2013/12/16 16:39:54 This was sort of intentional since there is no rea
461 void LogGpuCrash();
462
460 content::ActionCallback action_callback_; 463 content::ActionCallback action_callback_;
461 464
462 content::NotificationRegistrar registrar_; 465 content::NotificationRegistrar registrar_;
463 466
464 // Indicate whether recording and reporting are currently happening. 467 // Indicate whether recording and reporting are currently happening.
465 // These should not be set directly, but by calling SetRecording and 468 // These should not be set directly, but by calling SetRecording and
466 // SetReporting. 469 // SetReporting.
467 bool recording_active_; 470 bool recording_active_;
468 bool reporting_active_; 471 bool reporting_active_;
469 472
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 friend class extensions::ExtensionDownloader; 587 friend class extensions::ExtensionDownloader;
585 friend class extensions::ManifestFetchData; 588 friend class extensions::ManifestFetchData;
586 589
587 // Returns true if prefs::kMetricsReportingEnabled is set. 590 // Returns true if prefs::kMetricsReportingEnabled is set.
588 static bool IsMetricsReportingEnabled(); 591 static bool IsMetricsReportingEnabled();
589 592
590 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); 593 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper);
591 }; 594 };
592 595
593 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 596 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698