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

Unified Diff: chrome/browser/chromeos/events/event_rewriter.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
Index: chrome/browser/chromeos/events/event_rewriter.cc
diff --git a/chrome/browser/chromeos/events/event_rewriter.cc b/chrome/browser/chromeos/events/event_rewriter.cc
index a34f90fcde1c501f8fffa47ae387057fd3578d52..567cb996f4b5fc2eec32ee280af2cf301788e446 100644
--- a/chrome/browser/chromeos/events/event_rewriter.cc
+++ b/chrome/browser/chromeos/events/event_rewriter.cc
@@ -143,7 +143,7 @@ EventRewriter::EventRewriter()
pref_service_for_testing_(NULL) {
// The ash shell isn't instantiated for our unit tests.
if (ash::Shell::HasInstance()) {
- ash::Shell::GetPrimaryRootWindow()->GetDispatcher()->
+ ash::Shell::GetPrimaryRootWindow()->GetHost()->dispatcher()->
AddRootWindowObserver(this);
}
base::MessageLoopForUI::current()->AddObserver(this);
@@ -156,7 +156,7 @@ EventRewriter::EventRewriter()
EventRewriter::~EventRewriter() {
base::MessageLoopForUI::current()->RemoveObserver(this);
if (ash::Shell::HasInstance()) {
- ash::Shell::GetPrimaryRootWindow()->GetDispatcher()->
+ ash::Shell::GetPrimaryRootWindow()->GetHost()->dispatcher()->
RemoveRootWindowObserver(this);
}
if (base::SysInfo::IsRunningOnChromeOS()) {
« no previous file with comments | « chrome/browser/chrome_plugin_browsertest.cc ('k') | chrome/browser/chromeos/input_method/input_method_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698