Commit cdcdba21 authored by kinaba@chromium.org's avatar kinaba@chromium.org

Fix crash when .mhtml/.pdf files are opened from download shelf on Chrome OS.

BUG=344808

Review URL: https://codereview.chromium.org/172113002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252055 0039d316-1c4b-4281-b951-d872f2087c98
parent 204fc48e
......@@ -480,9 +480,11 @@ bool ExecuteFileBrowserHandler(
// files to be directly opened with the browser.
if (ShouldBeOpenedWithBrowser(extension->id(), action_id)) {
const bool result = OpenFilesWithBrowser(profile, file_urls);
if (!done.is_null()) {
done.Run(result
? extensions::api::file_browser_private::TASK_RESULT_OPENED
: extensions::api::file_browser_private::TASK_RESULT_FAILED);
}
return result;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment