| Index: ui/aura/client/screen_position_client.cc
|
| diff --git a/ui/aura/client/screen_position_client.cc b/ui/aura/client/screen_position_client.cc
|
| index ac131561a79c51e76b8eb6eb0fcd0a236c1e9161..1fb75217bcb66383abeb00662752be2e4dd665ed 100644
|
| --- a/ui/aura/client/screen_position_client.cc
|
| +++ b/ui/aura/client/screen_position_client.cc
|
| @@ -16,13 +16,17 @@ DEFINE_LOCAL_WINDOW_PROPERTY_KEY(ScreenPositionClient*,
|
| kScreenPositionClientKey,
|
| NULL);
|
|
|
| -void SetScreenPositionClient(RootWindow* window,
|
| +void SetScreenPositionClient(Window* root_window,
|
| ScreenPositionClient* client) {
|
| - window->SetProperty(kScreenPositionClientKey, client);
|
| + DCHECK_EQ(root_window->GetRootWindow(), root_window);
|
| + root_window->SetProperty(kScreenPositionClientKey, client);
|
| }
|
|
|
| -ScreenPositionClient* GetScreenPositionClient(const RootWindow* window) {
|
| - return window ? window->GetProperty(kScreenPositionClientKey) : NULL;
|
| +ScreenPositionClient* GetScreenPositionClient(const Window* root_window) {
|
| + if (root_window)
|
| + DCHECK_EQ(root_window->GetRootWindow(), root_window);
|
| + return root_window ?
|
| + root_window->GetProperty(kScreenPositionClientKey) : NULL;
|
| }
|
|
|
| } // namespace client
|
|
|