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

Side by Side Diff: chrome/browser/chrome_browser_main.h

Issue 8430004: Revert 107895 - Fully enable about:tracking by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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/browser_about_handler.cc ('k') | chrome/browser/chrome_browser_main.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) 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 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 const MainFunctionParams& parameters_; 112 const MainFunctionParams& parameters_;
113 const CommandLine& parsed_command_line_; 113 const CommandLine& parsed_command_line_;
114 int result_code_; 114 int result_code_;
115 115
116 // Create ShutdownWatcherHelper object for watching jank during shutdown. 116 // Create ShutdownWatcherHelper object for watching jank during shutdown.
117 // Please keep |shutdown_watcher| as the first object constructed, and hence 117 // Please keep |shutdown_watcher| as the first object constructed, and hence
118 // it is destroyed last. 118 // it is destroyed last.
119 scoped_ptr<ShutdownWatcherHelper> shutdown_watcher_; 119 scoped_ptr<ShutdownWatcherHelper> shutdown_watcher_;
120 120
121 #if defined(TRACK_ALL_TASK_OBJECTS)
121 // Creating this object starts tracking the creation and deletion of Task 122 // Creating this object starts tracking the creation and deletion of Task
122 // instance. This MUST be done before main_message_loop, so that it is 123 // instance. This MUST be done before main_message_loop, so that it is
123 // destroyed after the main_message_loop. 124 // destroyed after the main_message_loop.
124 tracked_objects::AutoTracking tracking_objects_; 125 tracked_objects::AutoTracking tracking_objects_;
126 #endif
125 127
126 // Statistical testing infrastructure for the entire browser. NULL until 128 // Statistical testing infrastructure for the entire browser. NULL until
127 // SetupMetricsAndFieldTrials is called. 129 // SetupMetricsAndFieldTrials is called.
128 scoped_ptr<base::FieldTrialList> field_trial_list_; 130 scoped_ptr<base::FieldTrialList> field_trial_list_;
129 131
130 // Members initialized after / released before main_message_loop_ ------------ 132 // Members initialized after / released before main_message_loop_ ------------
131 133
132 scoped_ptr<BrowserProcessImpl> browser_process_; 134 scoped_ptr<BrowserProcessImpl> browser_process_;
133 scoped_refptr<HistogramSynchronizer> histogram_synchronizer_; 135 scoped_refptr<HistogramSynchronizer> histogram_synchronizer_;
134 scoped_ptr<ProcessSingleton> process_singleton_; 136 scoped_ptr<ProcessSingleton> process_singleton_;
(...skipping 26 matching lines...) Expand all
161 // Records the time from our process' startup to the present time in 163 // Records the time from our process' startup to the present time in
162 // the UMA histogram |metric_name|. 164 // the UMA histogram |metric_name|.
163 void RecordBrowserStartupTime(); 165 void RecordBrowserStartupTime();
164 166
165 // Records a time value to an UMA histogram in the context of the 167 // Records a time value to an UMA histogram in the context of the
166 // PreReadExperiment field-trial. This also reports to the appropriate 168 // PreReadExperiment field-trial. This also reports to the appropriate
167 // sub-histogram (_PreRead(Enabled|Disabled)). 169 // sub-histogram (_PreRead(Enabled|Disabled)).
168 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); 170 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time);
169 171
170 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 172 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698