OLD | NEW |
---|---|
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 #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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
308 } | 308 } |
309 | 309 |
310 // Creates key child threads. We need to do this explicitly since | 310 // Creates key child threads. We need to do this explicitly since |
311 // BrowserThread::PostTask silently deletes a posted task if the target message | 311 // BrowserThread::PostTask silently deletes a posted task if the target message |
312 // loop isn't created. | 312 // loop isn't created. |
313 void CreateChildThreads(BrowserProcessImpl* process) { | 313 void CreateChildThreads(BrowserProcessImpl* process) { |
314 process->db_thread(); | 314 process->db_thread(); |
315 process->file_thread(); | 315 process->file_thread(); |
316 process->process_launcher_thread(); | 316 process->process_launcher_thread(); |
317 process->cache_thread(); | 317 process->cache_thread(); |
318 process->appcache_thread(); | |
rvargas (doing something else)
2011/10/21 19:46:17
Do you mind creating this thread before the cache
michaeln
2011/10/21 19:52:12
will do (ditto other necessary places)
| |
318 process->io_thread(); | 319 process->io_thread(); |
319 #if defined(OS_CHROMEOS) | 320 #if defined(OS_CHROMEOS) |
320 process->web_socket_proxy_thread(); | 321 process->web_socket_proxy_thread(); |
321 #endif | 322 #endif |
322 // Create watchdog thread after creating all other threads because it will | 323 // Create watchdog thread after creating all other threads because it will |
323 // watch the other threads and they must be running. | 324 // watch the other threads and they must be running. |
324 process->watchdog_thread(); | 325 process->watchdog_thread(); |
325 } | 326 } |
326 | 327 |
327 // Returns the new local state object, guaranteed non-NULL. | 328 // Returns the new local state object, guaranteed non-NULL. |
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2092 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && | 2093 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && |
2093 (pre_read == "0" || pre_read == "1")) { | 2094 (pre_read == "0" || pre_read == "1")) { |
2094 std::string uma_name(name); | 2095 std::string uma_name(name); |
2095 uma_name += "_PreRead"; | 2096 uma_name += "_PreRead"; |
2096 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; | 2097 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; |
2097 AddPreReadHistogramTime(uma_name.c_str(), time); | 2098 AddPreReadHistogramTime(uma_name.c_str(), time); |
2098 } | 2099 } |
2099 #endif | 2100 #endif |
2100 #endif | 2101 #endif |
2101 } | 2102 } |
OLD | NEW |