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 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 void ChromeBrowserMainParts::ToolkitInitialized() { | 1097 void ChromeBrowserMainParts::ToolkitInitialized() { |
1098 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) | 1098 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) |
1099 chrome_extra_parts_[i]->ToolkitInitialized(); | 1099 chrome_extra_parts_[i]->ToolkitInitialized(); |
1100 } | 1100 } |
1101 | 1101 |
1102 void ChromeBrowserMainParts::PreMainMessageLoopStart() { | 1102 void ChromeBrowserMainParts::PreMainMessageLoopStart() { |
1103 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) | 1103 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) |
1104 chrome_extra_parts_[i]->PreMainMessageLoopStart(); | 1104 chrome_extra_parts_[i]->PreMainMessageLoopStart(); |
1105 } | 1105 } |
1106 | 1106 |
| 1107 MessageLoop* ChromeBrowserMainParts::GetMainMessageLoop() { |
| 1108 return NULL; |
| 1109 } |
| 1110 |
1107 void ChromeBrowserMainParts::PostMainMessageLoopStart() { | 1111 void ChromeBrowserMainParts::PostMainMessageLoopStart() { |
1108 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) | 1112 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) |
1109 chrome_extra_parts_[i]->PostMainMessageLoopStart(); | 1113 chrome_extra_parts_[i]->PostMainMessageLoopStart(); |
1110 } | 1114 } |
1111 | 1115 |
1112 int ChromeBrowserMainParts::PreCreateThreads() { | 1116 int ChromeBrowserMainParts::PreCreateThreads() { |
1113 result_code_ = PreCreateThreadsImpl(); | 1117 result_code_ = PreCreateThreadsImpl(); |
1114 return result_code_; | 1118 return result_code_; |
1115 } | 1119 } |
1116 | 1120 |
(...skipping 816 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 |