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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1504033007: Move Indexed DB from dedicated thread to task scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timer
Patch Set: Tweak traits Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/browser_main_loop.h ('k') | content/browser/indexed_db/cursor_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index aa8fa9b89f30b8b5346cb10ad3302ffa60dbb203..ea5ed063a23bf2a6fa308f9cdb395428405709e4 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -363,12 +363,6 @@ NOINLINE void ResetThread_IO(std::unique_ptr<BrowserProcessSubThread> thread) {
thread.reset();
}
-NOINLINE void ResetThread_IndexedDb(std::unique_ptr<base::Thread> thread) {
- volatile int inhibit_comdat = __LINE__;
- ALLOW_UNUSED_LOCAL(inhibit_comdat);
- thread.reset();
-}
-
MSVC_POP_WARNING()
MSVC_ENABLE_OPTIMIZE();
@@ -1314,10 +1308,6 @@ void BrowserMainLoop::ShutdownThreadsAndCleanUp() {
break;
}
}
- {
- TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:IndexedDBThread");
- ResetThread_IndexedDb(std::move(indexed_db_thread_));
- }
// Close the blocking I/O pool after the other threads. Other threads such
// as the I/O thread may need to schedule work like closing files or
@@ -1402,9 +1392,6 @@ int BrowserMainLoop::BrowserThreadsStarted() {
}
#endif
- indexed_db_thread_.reset(new base::Thread("IndexedDB"));
- indexed_db_thread_->Start();
-
HistogramSynchronizer::GetInstance();
#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
// Up the priority of the UI thread.
« no previous file with comments | « content/browser/browser_main_loop.h ('k') | content/browser/indexed_db/cursor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698