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

Issue 1243033003: App Info: `View in Webstore` closes before navigating (not after) (Closed)

Created:
5 years, 5 months ago by tapted
Modified:
5 years, 4 months ago
Reviewers:
jackhou1, benwells, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

App Info: `View in Webstore` closes the dialog before navigating (not after) Currently, when clicking the 'View in Webstore' link in the App Info dialog, a new tab is created first then the dialog is closed. This isn't a problem on most platforms because the dialog is still window-modal, so it fades out regardless of which tab is focused. However, On Mac (and eventually perhaps elsewhere) the dialog is tab- modal. This means that opening a new tab for the navigation will first hide the dialog. Then, the fade-out occurs, which will show it again. A simple fix is to swap the lines to Close() the dialog and the navigation. This starts the dialog fading out before the tab switch hides it to show the webstore. Close() is asynchronous, so this is fine, but it looks a bit scary. AppInfo could do with more test coverage anyway, so add a test. Use BrowserWithTestWindowTest to avoid creating a browser_test. It needs a bit of a spruce-up to work on Mac, and can benefit from more code reuse by using ScopedViewsTestHelper. Tweaks TestExtensionEnvironment so it plays nice with a wider range of test harnesses, and adds the FROM_WEBSTORE manifest property by default (otherwise AppInfo omits the `Show in Webstore` link). BUG=485854 Committed: https://crrev.com/dfd8edaae421cf5533c2033acde474498c2ee469 Cr-Commit-Position: refs/heads/master@{#341702}

Patch Set 1 #

Patch Set 2 : Check created tab #

Patch Set 3 : Fix tests, CrOS #

Patch Set 4 : Keep the OLE thing #

Patch Set 5 : Fix #ifdefs #

Patch Set 6 : Likely fix for CrOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -96 lines) Patch
M chrome/browser/extensions/test_extension_environment.h View 1 2 3 4 5 2 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/extensions/test_extension_environment.cc View 1 2 3 4 5 4 chunks +33 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views_unittest.cc View 1 2 5 chunks +86 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_header_panel.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_header_panel.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/browser_with_test_window_test.h View 1 2 3 4 chunks +9 lines, -27 lines 0 comments Download
M chrome/test/base/browser_with_test_window_test.cc View 1 2 3 4 5 chunks +23 lines, -44 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
tapted
Hi Jack, could you please do a local review - Thanks!
5 years, 5 months ago (2015-07-24 06:10:46 UTC) #4
jackhou1
lgtm We probably want to do the same with links in app_info_summary_panel.cc.
5 years, 5 months ago (2015-07-27 01:31:26 UTC) #5
tapted
+sky for chrome/test/base OWNERS +benwells for chrome/browser/extensions OWNERS please take a look.
5 years, 4 months ago (2015-07-30 00:28:14 UTC) #7
sky
LGTM
5 years, 4 months ago (2015-08-03 16:32:01 UTC) #8
benwells
lgtm
5 years, 4 months ago (2015-08-04 06:12:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1243033003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1243033003/140001
5 years, 4 months ago (2015-08-04 07:13:03 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/88094)
5 years, 4 months ago (2015-08-04 08:31:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1243033003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1243033003/140001
5 years, 4 months ago (2015-08-04 08:32:30 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 4 months ago (2015-08-04 09:15:31 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-04 09:17:15 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/dfd8edaae421cf5533c2033acde474498c2ee469
Cr-Commit-Position: refs/heads/master@{#341702}

Powered by Google App Engine
This is Rietveld 408576698