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

Side by Side Diff: content/browser/browser_process_sub_thread.cc

Issue 1815563004: Remove iOS ifdefs in src/content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 9 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 "content/browser/browser_process_sub_thread.h" 5 #include "content/browser/browser_process_sub_thread.h"
6 6
7 #include "base/debug/leak_tracker.h" 7 #include "base/debug/leak_tracker.h"
8 #include "base/threading/thread_restrictions.h" 8 #include "base/threading/thread_restrictions.h"
9 #include "base/trace_event/memory_dump_manager.h" 9 #include "base/trace_event/memory_dump_manager.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #endif 59 #endif
60 } 60 }
61 61
62 void BrowserProcessSubThread::IOThreadPreCleanUp() { 62 void BrowserProcessSubThread::IOThreadPreCleanUp() {
63 // Kill all things that might be holding onto 63 // Kill all things that might be holding onto
64 // net::URLRequest/net::URLRequestContexts. 64 // net::URLRequest/net::URLRequestContexts.
65 65
66 // Destroy all URLRequests started by URLFetchers. 66 // Destroy all URLRequests started by URLFetchers.
67 net::URLFetcher::CancelAll(); 67 net::URLFetcher::CancelAll();
68 68
69 #if !defined(OS_IOS)
70 // If any child processes are still running, terminate them and 69 // If any child processes are still running, terminate them and
71 // and delete the BrowserChildProcessHost instances to release whatever 70 // and delete the BrowserChildProcessHost instances to release whatever
72 // IO thread only resources they are referencing. 71 // IO thread only resources they are referencing.
73 BrowserChildProcessHostImpl::TerminateAll(); 72 BrowserChildProcessHostImpl::TerminateAll();
74 #endif // !defined(OS_IOS)
75 73
76 // Unregister GpuMemoryBuffer dump provider before IO thread is shut down. 74 // Unregister GpuMemoryBuffer dump provider before IO thread is shut down.
77 base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider( 75 base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider(
78 BrowserGpuMemoryBufferManager::current()); 76 BrowserGpuMemoryBufferManager::current());
79 } 77 }
80 78
81 } // namespace content 79 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | content/browser/frame_host/navigation_entry_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698