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

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

Issue 1895773002: Move responsiblity of tab suspending from renderer to TabManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix time Created 4 years, 8 months 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
OLDNEW
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
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_CHROMEOS) || defined(OS_ ANDROID)
1254 g_browser_process->GetTabManager()->Start(); 1254 g_browser_process->GetTabManager()->Start();
Georges Khalil 2016/04/19 13:55:19 This will also enable automatic discarding as it w
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.
1264 process_singleton_->Unlock(); 1264 process_singleton_->Unlock();
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698