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

Unified Diff: content/browser/browser_main_loop.cc

Issue 12211072: Fix a crash when running with --memory-metrics on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | 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 a1bc8cdbd319ff2e6f4d822bab91f8bb4c61a271..6917f66202af6f8fc6aa4503106841150f167a1a 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());
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698