Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Issue 7830024: CrOS - Fix file picker to route callbacks using TabContents (Closed)

Created:
9 years, 3 months ago by James Cook
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Erik does not do reviews, achuith+watch_chromium.org, mihaip+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

CrOS - Fix file picker to route callbacks using TabContents Previously, when the user clicked open/save/cancel in the CrOS file picker, it would route that callback data to the frontmost tab. Sometimes other tabs can switch to frontmost, however. Use set_associated_tab_contents() to inform the extension function implementions of the tab to which to route the callbacks. This also adds a test from tbarzic for the referenced bug. BUG=chromium-os:18956 TEST=browser_tests FileManagerDialogTest.*, also verify you can open the file picker and open/save/cancel under normal conditions Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99327

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -21 lines) Patch
M chrome/browser/extensions/extension_file_browser_private_api.cc View 1 chunk +12 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/file_manager_dialog.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/file_manager_dialog_browsertest.cc View 2 chunks +60 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
James Cook
Robert, Toni, please take a look. This is a better fix than hacking the URL ...
9 years, 3 months ago (2011-09-01 21:23:47 UTC) #1
tbarzic
On 2011/09/01 21:23:47, James Cook (Chromium) wrote: > Robert, Toni, please take a look. This ...
9 years, 3 months ago (2011-09-01 21:33:25 UTC) #2
rginda
On 2011/09/01 21:33:25, tbarzic wrote: > On 2011/09/01 21:23:47, James Cook (Chromium) wrote: > > ...
9 years, 3 months ago (2011-09-01 22:18:19 UTC) #3
commit-bot: I haz the power
9 years, 3 months ago (2011-09-02 05:52:47 UTC) #4
Change committed as 99327

Powered by Google App Engine
This is Rietveld 408576698