| Index: chrome/browser/chromeos/extensions/file_manager_util.cc
|
| diff --git a/chrome/browser/chromeos/extensions/file_manager_util.cc b/chrome/browser/chromeos/extensions/file_manager_util.cc
|
| index d44485658265e277edbc3a4d14d421e5702cd7dc..e5be9ece1dc064cd70fc7117048c0c2c6c75ba75 100644
|
| --- a/chrome/browser/chromeos/extensions/file_manager_util.cc
|
| +++ b/chrome/browser/chromeos/extensions/file_manager_util.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
| #include "chrome/browser/chromeos/extensions/file_manager_util.h"
|
|
|
| +#include "ash/shell.h"
|
| #include "base/bind.h"
|
| #include "base/file_util.h"
|
| #include "base/json/json_reader.h"
|
| @@ -521,7 +522,8 @@ void OpenActionChoiceDialog(const FilePath& path) {
|
| url += "#/" + net::EscapeUrlEncodedData(virtual_path.value(), false);
|
| GURL dialog_url(url);
|
|
|
| - const gfx::Size screen = gfx::Screen::GetPrimaryDisplay().size();
|
| + const gfx::Size screen =
|
| + ash::Shell::GetAshScreen()->GetPrimaryDisplay().size();
|
| const gfx::Rect bounds((screen.width() - kDialogWidth) / 2,
|
| (screen.height() - kDialogHeight) / 2,
|
| kDialogWidth,
|
|
|