summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_main_loop.cc
diff options
context:
space:
mode:
authorhashimoto <hashimoto@chromium.org>2015-05-15 21:26:57 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-16 04:27:10 +0000
commitc896c5c18f89e2d4201b0bb1155a428d6d43b1ec (patch)
tree49d97423904ac311e93f4916bfe4c2140d3459be /content/browser/browser_main_loop.cc
parent122d247af7841b388e22b22f0605a1c5b6ca490f (diff)
downloadchromium_src-c896c5c18f89e2d4201b0bb1155a428d6d43b1ec.zip
chromium_src-c896c5c18f89e2d4201b0bb1155a428d6d43b1ec.tar.gz
chromium_src-c896c5c18f89e2d4201b0bb1155a428d6d43b1ec.tar.bz2
Remove unused ImmediateShutdownAndExitProcess()
This function was used only in application_lifetime.cc. Since http://crrev.com/307026, this function has been unused. BUG=None Review URL: https://codereview.chromium.org/1138863003 Cr-Commit-Position: refs/heads/master@{#330280}
Diffstat (limited to 'content/browser/browser_main_loop.cc')
-rw-r--r--content/browser/browser_main_loop.cc25
1 files changed, 0 insertions, 25 deletions
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 4d6c6c3..643cd38 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -50,7 +50,6 @@
#include "content/common/host_discardable_shared_memory_manager.h"
#include "content/common/host_shared_bitmap_manager.h"
#include "content/public/browser/browser_main_parts.h"
-#include "content/public/browser/browser_shutdown.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/tracing_controller.h"
@@ -336,30 +335,6 @@ base::win::MemoryPressureMonitor* CreateWinMemoryPressureMonitor(
// The currently-running BrowserMainLoop. There can be one or zero.
BrowserMainLoop* g_current_browser_main_loop = NULL;
-// This is just to be able to keep ShutdownThreadsAndCleanUp out of
-// the public interface of BrowserMainLoop.
-class BrowserShutdownImpl {
- public:
- static void ImmediateShutdownAndExitProcess() {
- DCHECK(g_current_browser_main_loop);
- g_current_browser_main_loop->ShutdownThreadsAndCleanUp();
-
-#if defined(OS_WIN)
- // At this point the message loop is still running yet we've shut everything
- // down. If any messages are processed we'll likely crash. Exit now.
- ExitProcess(RESULT_CODE_NORMAL_EXIT);
-#elif defined(OS_POSIX) && !defined(OS_MACOSX)
- _exit(RESULT_CODE_NORMAL_EXIT);
-#else
- NOTIMPLEMENTED();
-#endif
- }
-};
-
-void ImmediateShutdownAndExitProcess() {
- BrowserShutdownImpl::ImmediateShutdownAndExitProcess();
-}
-
// For measuring memory usage after each task. Behind a command line flag.
class BrowserMainLoop::MemoryObserver : public base::MessageLoop::TaskObserver {
public: