OLD | NEW |
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 #include "chrome/browser/chrome_browser_main.h" | 5 #include "chrome/browser/chrome_browser_main.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 void ChromeBrowserMainParts::ToolkitInitialized() { | 1093 void ChromeBrowserMainParts::ToolkitInitialized() { |
1094 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) | 1094 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) |
1095 chrome_extra_parts_[i]->ToolkitInitialized(); | 1095 chrome_extra_parts_[i]->ToolkitInitialized(); |
1096 } | 1096 } |
1097 | 1097 |
1098 void ChromeBrowserMainParts::PreMainMessageLoopStart() { | 1098 void ChromeBrowserMainParts::PreMainMessageLoopStart() { |
1099 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) | 1099 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) |
1100 chrome_extra_parts_[i]->PreMainMessageLoopStart(); | 1100 chrome_extra_parts_[i]->PreMainMessageLoopStart(); |
1101 } | 1101 } |
1102 | 1102 |
| 1103 MessageLoop* ChromeBrowserMainParts::GetMainMessageLoop() { |
| 1104 return NULL; |
| 1105 } |
| 1106 |
1103 void ChromeBrowserMainParts::PostMainMessageLoopStart() { | 1107 void ChromeBrowserMainParts::PostMainMessageLoopStart() { |
1104 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) | 1108 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) |
1105 chrome_extra_parts_[i]->PostMainMessageLoopStart(); | 1109 chrome_extra_parts_[i]->PostMainMessageLoopStart(); |
1106 } | 1110 } |
1107 | 1111 |
1108 void ChromeBrowserMainParts::PreCreateThreads() { | 1112 void ChromeBrowserMainParts::PreCreateThreads() { |
1109 result_code_ = PreCreateThreadsImpl(); | 1113 result_code_ = PreCreateThreadsImpl(); |
1110 | 1114 |
1111 // The code below is here instead of in PreCreateThreadsImpl because that | 1115 // The code below is here instead of in PreCreateThreadsImpl because that |
1112 // function has early returns. We always want to create the IOThread object | 1116 // function has early returns. We always want to create the IOThread object |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1933 if (base::win::GetVersion() <= base::win::VERSION_XP) | 1937 if (base::win::GetVersion() <= base::win::VERSION_XP) |
1934 uma_name += "_XP"; | 1938 uma_name += "_XP"; |
1935 | 1939 |
1936 uma_name += "_PreRead"; | 1940 uma_name += "_PreRead"; |
1937 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; | 1941 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; |
1938 AddPreReadHistogramTime(uma_name.c_str(), time); | 1942 AddPreReadHistogramTime(uma_name.c_str(), time); |
1939 } | 1943 } |
1940 #endif | 1944 #endif |
1941 #endif | 1945 #endif |
1942 } | 1946 } |
OLD | NEW |