diff options
author | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-11 20:08:47 +0000 |
---|---|---|
committer | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-11 20:08:47 +0000 |
commit | a298f6e45114bdee170ed807033ba9fb5e00f35a (patch) | |
tree | 9a92e7532c396442bf769258c1d630d5faf30b00 /content/browser | |
parent | aaa2a6c52ed5a8c6c1e505c58c2a84494395860b (diff) | |
download | chromium_src-a298f6e45114bdee170ed807033ba9fb5e00f35a.zip chromium_src-a298f6e45114bdee170ed807033ba9fb5e00f35a.tar.gz chromium_src-a298f6e45114bdee170ed807033ba9fb5e00f35a.tar.bz2 |
Fix a crash when running with --memory-metrics on Android.
The main_message_loop_ can stay NULL through this function.
BUG=NONE
Review URL: https://chromiumcodereview.appspot.com/12211072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181739 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser')
-rw-r--r-- | content/browser/browser_main_loop.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc index a1bc8cd..6917f66 100644 --- a/content/browser/browser_main_loop.cc +++ b/content/browser/browser_main_loop.cc @@ -401,7 +401,7 @@ void BrowserMainLoop::MainMessageLoopStart() { if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) { memory_observer_.reset(new MemoryObserver()); - main_message_loop_->AddTaskObserver(memory_observer_.get()); + MessageLoop::current()->AddTaskObserver(memory_observer_.get()); } } |