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

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

Issue 7624031: Treat files downloaded from the address bar as "always safe" (including extensions per discussion... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 //------------------------------------------------------------------------------ 5 //------------------------------------------------------------------------------
6 // Description of the life cycle of a instance of MetricsService. 6 // Description of the life cycle of a instance of MetricsService.
7 // 7 //
8 // OVERVIEW 8 // OVERVIEW
9 // 9 //
10 // A MetricsService instance is typically created at application startup. It 10 // A MetricsService instance is typically created at application startup. It
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 explicit ChildProcessStats(ChildProcessInfo::ProcessType type) 275 explicit ChildProcessStats(ChildProcessInfo::ProcessType type)
276 : process_launches(0), 276 : process_launches(0),
277 process_crashes(0), 277 process_crashes(0),
278 instances(0), 278 instances(0),
279 process_type(type) {} 279 process_type(type) {}
280 280
281 // This constructor is only used by the map to return some default value for 281 // This constructor is only used by the map to return some default value for
282 // an index for which no value has been assigned. 282 // an index for which no value has been assigned.
283 ChildProcessStats() 283 ChildProcessStats()
284 : process_launches(0), 284 : process_launches(0),
285 process_crashes(0), 285 process_crashes(0),
286 instances(0), 286 instances(0),
287 process_type(ChildProcessInfo::UNKNOWN_PROCESS) {} 287 process_type(ChildProcessInfo::UNKNOWN_PROCESS) {}
288 288
289 // The number of times that the given child process has been launched 289 // The number of times that the given child process has been launched
290 int process_launches; 290 int process_launches;
291 291
292 // The number of times that the given child process has crashed 292 // The number of times that the given child process has crashed
293 int process_crashes; 293 int process_crashes;
294 294
295 // The number of instances of this child process that have been created. 295 // The number of instances of this child process that have been created.
296 // An instance is a DOM object rendered by this child process during a page 296 // An instance is a DOM object rendered by this child process during a page
297 // load. 297 // load.
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 if (local_state) { 1708 if (local_state) {
1709 const PrefService::Preference* uma_pref = 1709 const PrefService::Preference* uma_pref =
1710 local_state->FindPreference(prefs::kMetricsReportingEnabled); 1710 local_state->FindPreference(prefs::kMetricsReportingEnabled);
1711 if (uma_pref) { 1711 if (uma_pref) {
1712 bool success = uma_pref->GetValue()->GetAsBoolean(&result); 1712 bool success = uma_pref->GetValue()->GetAsBoolean(&result);
1713 DCHECK(success); 1713 DCHECK(success);
1714 } 1714 }
1715 } 1715 }
1716 return result; 1716 return result;
1717 } 1717 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/user_script_listener_unittest.cc ('k') | chrome/browser/ui/browser_navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698