| Index: chrome/browser/extensions/api/tabs/tabs_api.cc
|
| diff --git a/chrome/browser/extensions/api/tabs/tabs_api.cc b/chrome/browser/extensions/api/tabs/tabs_api.cc
|
| index 325a624ccd3117180d35600e0ee71221ad86fee8..e265b81041ef52932f0e0e06b8809fe576f6e04e 100644
|
| --- a/chrome/browser/extensions/api/tabs/tabs_api.cc
|
| +++ b/chrome/browser/extensions/api/tabs/tabs_api.cc
|
| @@ -598,6 +598,7 @@ ExtensionFunction::ResponseAction WindowsCreateFunction::Run() {
|
| false /* trusted_source */, window_bounds, window_profile);
|
| }
|
| create_params.initial_show_state = ui::SHOW_STATE_NORMAL;
|
| + create_params.user_gesture = user_gesture();
|
| if (create_data && create_data->state) {
|
| create_params.initial_show_state =
|
| ConvertToWindowShowState(create_data->state);
|
| @@ -1004,7 +1005,7 @@ ExtensionFunction::ResponseAction TabsCreateFunction::Run() {
|
|
|
| std::string error;
|
| std::unique_ptr<base::DictionaryValue> result(
|
| - ExtensionTabUtil::OpenTab(this, options, &error));
|
| + ExtensionTabUtil::OpenTab(this, options, user_gesture(), &error));
|
| if (!result)
|
| return RespondNow(Error(error));
|
|
|
|
|