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

Side by Side Diff: chrome/browser/browser_main.cc

Issue 399065: Enable WebSocketExperiment back (Closed)
Patch Set: Created 11 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
« no previous file with comments | « no previous file | no next file » | 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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/browser_main.h" 5 #include "chrome/browser/browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 // on recording, but not reporting, otherwise tests fail. 835 // on recording, but not reporting, otherwise tests fail.
836 if (record_only) { 836 if (record_only) {
837 metrics->StartRecordingOnly(); 837 metrics->StartRecordingOnly();
838 } else { 838 } else {
839 // If the user permits metrics reporting with the checkbox in the 839 // If the user permits metrics reporting with the checkbox in the
840 // prefs, we turn on recording. 840 // prefs, we turn on recording.
841 metrics->SetUserPermitsUpload(enabled); 841 metrics->SetUserPermitsUpload(enabled);
842 if (enabled) 842 if (enabled)
843 metrics->Start(); 843 metrics->Start();
844 } 844 }
845 // TODO(ukai): Bug 28096: Implement ExperimentRunner so that it does not
846 // tear down histograms early, and cause a crash.
847 /*
848 chrome_browser_net_websocket_experiment::WebSocketExperimentRunner::Start(); 845 chrome_browser_net_websocket_experiment::WebSocketExperimentRunner::Start();
849 */
850 } 846 }
851 847
852 InstallJankometer(parsed_command_line); 848 InstallJankometer(parsed_command_line);
853 849
854 #if defined(OS_WIN) && !defined(GOOGLE_CHROME_BUILD) 850 #if defined(OS_WIN) && !defined(GOOGLE_CHROME_BUILD)
855 if (parsed_command_line.HasSwitch(switches::kDebugPrint)) { 851 if (parsed_command_line.HasSwitch(switches::kDebugPrint)) {
856 printing::PrintedDocument::set_debug_dump_path( 852 printing::PrintedDocument::set_debug_dump_path(
857 parsed_command_line.GetSwitchValue(switches::kDebugPrint)); 853 parsed_command_line.GetSwitchValue(switches::kDebugPrint));
858 } 854 }
859 #endif 855 #endif
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 if (metrics) 903 if (metrics)
908 metrics->Stop(); 904 metrics->Stop();
909 905
910 // browser_shutdown takes care of deleting browser_process, so we need to 906 // browser_shutdown takes care of deleting browser_process, so we need to
911 // release it. 907 // release it.
912 browser_process.release(); 908 browser_process.release();
913 browser_shutdown::Shutdown(); 909 browser_shutdown::Shutdown();
914 910
915 return result_code; 911 return result_code;
916 } 912 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698