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

Issue 10829170: Cocoa: Show OAuth issues in extension install dialog (Closed)

Created:
8 years, 4 months ago by sail
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Cocoa: Show OAuth issues in extension install dialog This is the Cocoa version of the following two CLs: https://chromiumcodereview.appspot.com/10696042 https://chromiumcodereview.appspot.com/10824054 Currently the extension install dialog shows permission warnings inside a multiline text field. OAuth issues are different in that they are a list of issues, each of which can be expadned to show more details. To support this I replaced the multiline text field with an NSOutlineView. Screenshots: - OAuth issues + Warnings: http://i.imgur.com/Hbag3.png - Inline install + Warnings: http://i.imgur.com/gpLI9.png - Inline + No Warnings (outline view hidden): http://i.imgur.com/se9tH.png - Bundle install + Warnings: http://i.imgur.com/5H3Rm.png XIB changes: Replaced warning and subtitle text field with outline view. Updated relevant outlets. BUG=30206 TEST= 1. Test OAuth issues. Run chrome with --demand-user-scope-approval. Drag/drop oauth2.crx from estade. Verify that warnings and oauth issues are displayed. Verify that expanding a oauth issue grows the dialog. 2. Test Inline install + Warning. Navigate to https://www.google.com/chrome/intl/en/p/google-plus.html and click install. Verify that warnings are displayed. 3. Test Inline Install + No Warnings. Navigate to http://chrome.angrybirds.com/ and click install. Verify that the outline view is hidden and that the dialog is correctly resized. 4. Test Bundle Install. Run chrome with --apps-gallery-url="http://www.corp.google.com/" Navigate to http://www.corp.google.com/~jstritar/bundle.html. Verify that warnings are shown. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151187

Patch Set 1 #

Patch Set 2 : test #

Total comments: 2

Patch Set 3 : clean up #

Patch Set 4 : fix gtk #

Patch Set 5 : use autoreset #

Total comments: 16

Patch Set 6 : address review comments #

Patch Set 7 : address review comments #

Patch Set 8 : " #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1369 lines, -358 lines) Patch
M chrome/app/nibs/ExtensionInstallPrompt.xib View 1 2 3 4 5 6 7 15 chunks +347 lines, -91 lines 0 comments Download
M chrome/app/nibs/ExtensionInstallPromptBundle.xib View 1 2 3 4 5 6 7 17 chunks +355 lines, -97 lines 0 comments Download
M chrome/app/nibs/ExtensionInstallPromptInline.xib View 1 2 3 4 5 6 7 18 chunks +340 lines, -94 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.h View 1 2 3 4 5 4 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm View 1 2 3 4 5 6 12 chunks +265 lines, -47 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller_unittest.mm View 1 4 chunks +45 lines, -17 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sail
8 years, 4 months ago (2012-08-03 17:55:13 UTC) #1
Evan Stade
changes to non-mac things LGTM. +sky for ui/ OWNERS stamp. https://chromiumcodereview.appspot.com/10829170/diff/11/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc File chrome/browser/ui/views/extensions/extension_install_dialog_view.cc (right): https://chromiumcodereview.appspot.com/10829170/diff/11/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc#newcode380 ...
8 years, 4 months ago (2012-08-03 18:07:20 UTC) #2
sail
Rebased and fixed GTK build. https://chromiumcodereview.appspot.com/10829170/diff/11/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc File chrome/browser/ui/views/extensions/extension_install_dialog_view.cc (right): https://chromiumcodereview.appspot.com/10829170/diff/11/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc#newcode380 chrome/browser/ui/views/extensions/extension_install_dialog_view.cc:380: IDS_EXTENSION_PERMISSION_LINE, prompt.GetPermission(i)); On 2012/08/03 ...
8 years, 4 months ago (2012-08-03 19:10:39 UTC) #3
sky
views LGTM
8 years, 4 months ago (2012-08-03 22:22:40 UTC) #4
Robert Sesek
Overall pretty good. We've started to prefer NSWidth/Height over direct struct access, so mostly comments ...
8 years, 4 months ago (2012-08-06 21:31:48 UTC) #5
sail
http://codereview.chromium.org/10829170/diff/1010/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.h File chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.h (right): http://codereview.chromium.org/10829170/diff/1010/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.h#newcode50 chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.h:50: BOOL isComputingRowHeight; On 2012/08/06 21:31:48, rsesek wrote: > nit: ...
8 years, 4 months ago (2012-08-09 02:00:29 UTC) #6
Robert Sesek
LGTM
8 years, 4 months ago (2012-08-09 14:48:16 UTC) #7
sky
LGTM
8 years, 4 months ago (2012-08-09 16:15:26 UTC) #8
Evan Stade
p.s., your screenshots make me think we probably do one day want the oauth stuff ...
8 years, 4 months ago (2012-08-10 02:47:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10829170/13004
8 years, 4 months ago (2012-08-10 23:16:23 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-08-11 03:57:58 UTC) #11
Change committed as 151187

Powered by Google App Engine
This is Rietveld 408576698