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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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
Index: chrome/browser/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index 940ccb626996b78eaab72d490a668ca77a6fb3c7..3f353c650a80972b125de6d994744a19d960f377 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -537,8 +537,9 @@ class SessionRestoreImpl : public content::NotificationObserver {
if (synchronous_) {
{
- MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current());
- MessageLoop::current()->Run();
+ base::MessageLoop::ScopedNestableTaskAllower allow(
+ base::MessageLoop::current());
+ base::MessageLoop::current()->Run();
}
Browser* browser = ProcessSessionWindows(&windows_, active_window_id_);
delete this;
@@ -715,7 +716,7 @@ class SessionRestoreImpl : public content::NotificationObserver {
// NOTE: we must use DeleteLater here as most likely we're in a callback
// from the history service which doesn't deal well with deleting the
// object it is notifying.
- MessageLoop::current()->DeleteSoon(FROM_HERE, this);
+ base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
// The delete may take a while and at this point we no longer care about
// if the browser is deleted. Don't listen to anything. This avoid a
@@ -749,7 +750,7 @@ class SessionRestoreImpl : public content::NotificationObserver {
// See comment above windows_ as to why we don't process immediately.
windows_.swap(windows.get());
active_window_id_ = active_window_id;
- MessageLoop::current()->QuitNow();
+ base::MessageLoop::current()->QuitNow();
return;
}

Powered by Google App Engine
This is Rietveld 408576698