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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 syzyasan_enable_deferred_free(); | 1243 syzyasan_enable_deferred_free(); |
1244 success = true; | 1244 success = true; |
1245 } | 1245 } |
1246 } | 1246 } |
1247 UMA_HISTOGRAM_BOOLEAN("Syzyasan.DeferredFreeWasEnabled", success); | 1247 UMA_HISTOGRAM_BOOLEAN("Syzyasan.DeferredFreeWasEnabled", success); |
1248 } | 1248 } |
1249 #endif | 1249 #endif |
1250 | 1250 |
1251 // Start the tab manager here so that we give the most amount of time for the | 1251 // Start the tab manager here so that we give the most amount of time for the |
1252 // other services to start up before we start adjusting the oom priority. | 1252 // other services to start up before we start adjusting the oom priority. |
1253 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 1253 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
1254 g_browser_process->GetTabManager()->Start(); | 1254 g_browser_process->GetTabManager()->Start(); |
1255 #endif | 1255 #endif |
1256 } | 1256 } |
1257 | 1257 |
1258 void ChromeBrowserMainParts::PostBrowserStart() { | 1258 void ChromeBrowserMainParts::PostBrowserStart() { |
1259 TRACE_EVENT0("startup", "ChromeBrowserMainParts::PostBrowserStart"); | 1259 TRACE_EVENT0("startup", "ChromeBrowserMainParts::PostBrowserStart"); |
1260 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) | 1260 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) |
1261 chrome_extra_parts_[i]->PostBrowserStart(); | 1261 chrome_extra_parts_[i]->PostBrowserStart(); |
1262 #if !defined(OS_ANDROID) | 1262 #if !defined(OS_ANDROID) |
1263 // Allow ProcessSingleton to process messages. | 1263 // Allow ProcessSingleton to process messages. |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1947 chromeos::CrosSettings::Shutdown(); | 1947 chromeos::CrosSettings::Shutdown(); |
1948 #endif // defined(OS_CHROMEOS) | 1948 #endif // defined(OS_CHROMEOS) |
1949 #endif // defined(OS_ANDROID) | 1949 #endif // defined(OS_ANDROID) |
1950 } | 1950 } |
1951 | 1951 |
1952 // Public members: | 1952 // Public members: |
1953 | 1953 |
1954 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { | 1954 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { |
1955 chrome_extra_parts_.push_back(parts); | 1955 chrome_extra_parts_.push_back(parts); |
1956 } | 1956 } |
OLD | NEW |