| Index: apps/app_window.cc
|
| diff --git a/apps/app_window.cc b/apps/app_window.cc
|
| index be59b800519c8b01e46ad79357e7a784d2cc8123..dbc28f759aa7198f28a4830c80f22283966423f3 100644
|
| --- a/apps/app_window.cc
|
| +++ b/apps/app_window.cc
|
| @@ -41,6 +41,7 @@
|
| #include "extensions/common/extension.h"
|
| #include "extensions/common/extension_messages.h"
|
| #include "extensions/common/manifest_handlers/icons_handler.h"
|
| +#include "extensions/common/permissions/permissions_data.h"
|
| #include "grit/theme_resources.h"
|
| #include "third_party/skia/include/core/SkRegion.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| @@ -432,7 +433,8 @@ bool AppWindow::PreHandleKeyboardEvent(
|
| if (event.windowsKeyCode == ui::VKEY_ESCAPE &&
|
| (fullscreen_types_ != FULLSCREEN_TYPE_NONE) &&
|
| ((fullscreen_types_ & FULLSCREEN_TYPE_FORCED) == 0) &&
|
| - !extension->HasAPIPermission(APIPermission::kOverrideEscFullscreen)) {
|
| + !extension->permissions_data()->HasAPIPermission(
|
| + APIPermission::kOverrideEscFullscreen)) {
|
| Restore();
|
| return true;
|
| }
|
|
|