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

Unified Diff: chrome/browser/ui/views/accessibility_event_router_views.cc

Issue 7054052: Move more from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/ui/views/accessibility_event_router_views.cc
===================================================================
--- chrome/browser/ui/views/accessibility_event_router_views.cc (revision 88218)
+++ chrome/browser/ui/views/accessibility_event_router_views.cc (working copy)
@@ -126,11 +126,10 @@
// the most recent profile where accessibility events were sent, or
// the default profile.
Profile* profile = NULL;
- views::Window* window = view->GetWindow();
- if (window) {
+ views::Widget* widget = view->GetWidget();
+ if (widget) {
profile = reinterpret_cast<Profile*>(
- window->AsWidget()->native_widget()->GetNativeWindowProperty(
- Profile::kProfileKey));
+ widget->native_widget()->GetNativeWindowProperty(Profile::kProfileKey));
}
if (!profile)
profile = most_recent_profile_;

Powered by Google App Engine
This is Rietveld 408576698