| Index: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| diff --git a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| index 28bb985a08579b75e27a34a384c97cb7f9e36a98..c2b4571eb428a2dde5856a2dfe92d4f65f2fa80b 100644
|
| --- a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| +++ b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| @@ -513,7 +513,7 @@ bool CreateOffscreenTabFunction::RunImpl() {
|
| // TODO(alexbost): Maybe the callback is called too soon. It should probably
|
| // be called once we have navigated to the url.
|
| if (has_callback()) {
|
| - result_.reset(offscreen_tab.CreateValue());
|
| + SetResult(offscreen_tab.CreateValue());
|
| SendResponse(true);
|
| }
|
|
|
| @@ -535,7 +535,7 @@ bool GetOffscreenTabFunction::RunImpl() {
|
| return false;
|
| }
|
|
|
| - result_.reset(offscreen_tab->CreateValue());
|
| + SetResult(offscreen_tab->CreateValue());
|
| return true;
|
| }
|
|
|
| @@ -555,7 +555,7 @@ bool GetAllOffscreenTabFunction::RunImpl() {
|
| tab_list->Append((*i)->CreateValue());
|
| }
|
|
|
| - result_.reset(tab_list);
|
| + SetResult(tab_list);
|
| return true;
|
| }
|
|
|
|
|