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

Issue 2076253002: Simplify the text in the external protocol confirmation dialog. (Closed)

Created:
4 years, 6 months ago by dominickn
Modified:
4 years, 2 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify the text in the external protocol confirmation dialog. The external protocol handler dialog currently presents users with a very large amount of jargon-filled text. This CL simplifies the dialog down to just a title containing the app name and the existing checkbox. On Windows 7 and earlier, the registry is queried for an app path, which is displayed in the dialog. This CL modifies the query to retrieve a program name from the app path, falling back to just the executable name if the retrieval doesn't succeed. A new histogram to log the number of times users check the checkbox in the dialog is also added. BUG=601725 Committed: https://crrev.com/0c9a5065a8a7c4b760b79eb996548b1921ed05ea Cr-Commit-Position: refs/heads/master@{#423664}

Patch Set 1 #

Patch Set 2 : Convert app path to app name on Windows 7 and older #

Patch Set 3 : Add metric for when the checkbox is checked #

Total comments: 1

Patch Set 4 : Remove querying for app name #

Patch Set 5 : Update based on UI review #

Total comments: 10

Patch Set 6 : Address comments #

Total comments: 33

Patch Set 7 : Address comments #

Total comments: 7

Patch Set 8 : Fix ChromeOS compile #

Total comments: 3

Patch Set 9 : Address comments, remove period #

Total comments: 6

Patch Set 10 : Fix variables #

Patch Set 11 : Const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -219 lines) Patch
M chrome/app/chromium_strings.grd View 1 2 3 4 5 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -20 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 2 3 4 5 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/external_protocol_dialog.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -18 lines 0 comments Download
M chrome/browser/external_protocol/external_protocol_handler.h View 1 2 3 4 5 6 2 chunks +27 lines, -23 lines 0 comments Download
M chrome/browser/external_protocol/external_protocol_handler.cc View 1 2 3 4 5 6 3 chunks +63 lines, -56 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -14 lines 0 comments Download
M chrome/browser/ui/cocoa/external_protocol_dialog.mm View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -33 lines 0 comments Download
M chrome/browser/ui/external_protocol_dialog_delegate.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/external_protocol_dialog_delegate.cc View 1 2 3 4 5 6 7 8 2 chunks +35 lines, -36 lines 0 comments Download
M chrome/browser/ui/protocol_dialog_delegate.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/external_protocol_dialog.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (36 generated)
Matt Giuca
https://codereview.chromium.org/2076253002/diff/40001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/2076253002/diff/40001/chrome/browser/shell_integration_win.cc#newcode216 chrome/browser/shell_integration_win.cc:216: base::FileVersionInfo* info = No "base::". This class isn't in ...
4 years, 4 months ago (2016-08-04 05:08:31 UTC) #3
Matt Giuca
I accidentally triggered this code review. So I won't consider it "out for review" just ...
4 years, 4 months ago (2016-08-05 04:46:13 UTC) #4
dominickn
+msw: PTAL at chrome/browser/ui +isherman: PTAL at tools/ +oshima: PTAL at chrome/browser/chromeos Thanks!
4 years, 2 months ago (2016-10-04 01:22:38 UTC) #6
dominickn
+meacer: PTAL at chrome/browser/external_protocol. Thanks!
4 years, 2 months ago (2016-10-04 01:23:23 UTC) #8
meacer
https://codereview.chromium.org/2076253002/diff/80001/chrome/browser/external_protocol/external_protocol_handler.cc File chrome/browser/external_protocol/external_protocol_handler.cc (right): https://codereview.chromium.org/2076253002/diff/80001/chrome/browser/external_protocol/external_protocol_handler.cc#newcode135 chrome/browser/external_protocol/external_protocol_handler.cc:135: "ExternalProtocolDialog.RememberCheckbox"; I think it'll be nicer if the UMA ...
4 years, 2 months ago (2016-10-04 01:28:56 UTC) #9
Ilya Sherman
https://codereview.chromium.org/2076253002/diff/80001/chrome/browser/ui/views/external_protocol_dialog.cc File chrome/browser/ui/views/external_protocol_dialog.cc (right): https://codereview.chromium.org/2076253002/diff/80001/chrome/browser/ui/views/external_protocol_dialog.cc#newcode86 chrome/browser/ui/views/external_protocol_dialog.cc:86: UMA_HISTOGRAM_SPARSE_SLOWLY( UMA_HISTOGRAM_BOOLEAN is probably more appropriate. https://codereview.chromium.org/2076253002/diff/80001/chrome/browser/ui/views/external_protocol_dialog.cc#newcode103 chrome/browser/ui/views/external_protocol_dialog.cc:103: message_box_view_->IsCheckBoxSelected()); ...
4 years, 2 months ago (2016-10-04 01:34:46 UTC) #10
dominickn
Thanks! https://codereview.chromium.org/2076253002/diff/80001/chrome/browser/external_protocol/external_protocol_handler.cc File chrome/browser/external_protocol/external_protocol_handler.cc (right): https://codereview.chromium.org/2076253002/diff/80001/chrome/browser/external_protocol/external_protocol_handler.cc#newcode135 chrome/browser/external_protocol/external_protocol_handler.cc:135: "ExternalProtocolDialog.RememberCheckbox"; On 2016/10/04 01:28:56, Mustafa Emre Acer wrote: ...
4 years, 2 months ago (2016-10-04 12:37:01 UTC) #15
meacer
On 2016/10/04 12:37:01, dominickn wrote: > Thanks! > > https://codereview.chromium.org/2076253002/diff/80001/chrome/browser/external_protocol/external_protocol_handler.cc > File chrome/browser/external_protocol/external_protocol_handler.cc (right): > ...
4 years, 2 months ago (2016-10-04 17:18:08 UTC) #16
meacer
(and forgot to send the comments) https://codereview.chromium.org/2076253002/diff/100001/chrome/browser/external_protocol/external_protocol_handler.h File chrome/browser/external_protocol/external_protocol_handler.h (right): https://codereview.chromium.org/2076253002/diff/100001/chrome/browser/external_protocol/external_protocol_handler.h#newcode49 chrome/browser/external_protocol/external_protocol_handler.h:49: static void RecordMetrics(bool ...
4 years, 2 months ago (2016-10-04 17:18:28 UTC) #17
oshima
cros lgtm with one nit https://codereview.chromium.org/2076253002/diff/100001/chrome/browser/chromeos/external_protocol_dialog.cc File chrome/browser/chromeos/external_protocol_dialog.cc (right): https://codereview.chromium.org/2076253002/diff/100001/chrome/browser/chromeos/external_protocol_dialog.cc#newcode103 chrome/browser/chromeos/external_protocol_dialog.cc:103: views::MessageBoxView::InitParams params(base::ASCIIToUTF16("")); nit: string16()
4 years, 2 months ago (2016-10-04 17:30:59 UTC) #18
msw
some minor comments for chrome/browser/ui https://codereview.chromium.org/2076253002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (left): https://codereview.chromium.org/2076253002/diff/100001/chrome/app/generated_resources.grd#oldcode11282 chrome/app/generated_resources.grd:11282: <message name="IDS_EXTERNAL_PROTOCOL_CANCEL_BUTTON_TEXT" desc="Button in ...
4 years, 2 months ago (2016-10-04 18:05:02 UTC) #19
dominickn
Thanks! https://codereview.chromium.org/2076253002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (left): https://codereview.chromium.org/2076253002/diff/100001/chrome/app/generated_resources.grd#oldcode11282 chrome/app/generated_resources.grd:11282: <message name="IDS_EXTERNAL_PROTOCOL_CANCEL_BUTTON_TEXT" desc="Button in External Protocol Dialog that ...
4 years, 2 months ago (2016-10-04 23:27:36 UTC) #21
msw
c/b/ui lgtm with minor comments/questions https://codereview.chromium.org/2076253002/diff/120001/chrome/browser/ui/cocoa/external_protocol_dialog.mm File chrome/browser/ui/cocoa/external_protocol_dialog.mm (right): https://codereview.chromium.org/2076253002/diff/120001/chrome/browser/ui/cocoa/external_protocol_dialog.mm#newcode69 chrome/browser/ui/cocoa/external_protocol_dialog.mm:69: IDS_EXTERNAL_PROTOCOL_OK_BUTTON_TEXT, appName)]; Should this ...
4 years, 2 months ago (2016-10-04 23:46:29 UTC) #25
dominickn
Thanks! https://codereview.chromium.org/2076253002/diff/120001/chrome/browser/ui/cocoa/external_protocol_dialog.mm File chrome/browser/ui/cocoa/external_protocol_dialog.mm (right): https://codereview.chromium.org/2076253002/diff/120001/chrome/browser/ui/cocoa/external_protocol_dialog.mm#newcode69 chrome/browser/ui/cocoa/external_protocol_dialog.mm:69: IDS_EXTERNAL_PROTOCOL_OK_BUTTON_TEXT, appName)]; On 2016/10/04 23:46:28, msw wrote: > ...
4 years, 2 months ago (2016-10-05 00:06:47 UTC) #26
msw
still lgtm https://codereview.chromium.org/2076253002/diff/120001/chrome/browser/ui/cocoa/external_protocol_dialog.mm File chrome/browser/ui/cocoa/external_protocol_dialog.mm (right): https://codereview.chromium.org/2076253002/diff/120001/chrome/browser/ui/cocoa/external_protocol_dialog.mm#newcode69 chrome/browser/ui/cocoa/external_protocol_dialog.mm:69: IDS_EXTERNAL_PROTOCOL_OK_BUTTON_TEXT, appName)]; On 2016/10/05 00:06:47, dominickn wrote: ...
4 years, 2 months ago (2016-10-05 00:28:03 UTC) #27
Ilya Sherman
https://codereview.chromium.org/2076253002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2076253002/diff/140001/tools/metrics/histograms/histograms.xml#newcode4823 tools/metrics/histograms/histograms.xml:4823: +<histogram name="BrowserDialogs.ExternalProtocol.RememberCheckbox" Hmm, "BrowserDialogs" is more general, but I'm ...
4 years, 2 months ago (2016-10-05 01:04:18 UTC) #29
dominickn
https://codereview.chromium.org/2076253002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2076253002/diff/140001/tools/metrics/histograms/histograms.xml#newcode4823 tools/metrics/histograms/histograms.xml:4823: +<histogram name="BrowserDialogs.ExternalProtocol.RememberCheckbox" On 2016/10/05 01:04:18, Ilya Sherman wrote: > ...
4 years, 2 months ago (2016-10-05 04:47:41 UTC) #34
dominickn
+thestig: PTAL at chrome/browser/shell_integration, thanks!
4 years, 2 months ago (2016-10-05 04:48:24 UTC) #36
Lei Zhang
On 2016/10/05 04:48:24, dominickn wrote: > +thestig: PTAL at chrome/browser/shell_integration, thanks! LGTM, but ask chrome/browser/OWNERS ...
4 years, 2 months ago (2016-10-05 05:07:57 UTC) #37
dominickn
So there are. I'll run it by one of them to make sure, thanks! :) ...
4 years, 2 months ago (2016-10-05 05:16:32 UTC) #39
Ilya Sherman
metrics LGTM (with optional name change) https://codereview.chromium.org/2076253002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2076253002/diff/140001/tools/metrics/histograms/histograms.xml#newcode4823 tools/metrics/histograms/histograms.xml:4823: +<histogram name="BrowserDialogs.ExternalProtocol.RememberCheckbox" On ...
4 years, 2 months ago (2016-10-05 05:57:45 UTC) #40
gab
https://codereview.chromium.org/2076253002/diff/160001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/2076253002/diff/160001/chrome/browser/shell_integration_win.cc#newcode204 chrome/browser/shell_integration_win.cc:204: base::ASCIIToUTF16(url.scheme() + "\\shell\\open\\command"); I'd say using the exe's name ...
4 years, 2 months ago (2016-10-05 14:23:36 UTC) #41
Lei Zhang
https://codereview.chromium.org/2076253002/diff/160001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/2076253002/diff/160001/chrome/browser/shell_integration_win.cc#newcode214 chrome/browser/shell_integration_win.cc:214: return base::WideToUTF16(command_line.GetProgram().BaseName().value()); On 2016/10/05 14:23:36, gab wrote: > wstring ...
4 years, 2 months ago (2016-10-05 16:29:27 UTC) #42
dominickn
Thanks! https://codereview.chromium.org/2076253002/diff/160001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/2076253002/diff/160001/chrome/browser/shell_integration_win.cc#newcode204 chrome/browser/shell_integration_win.cc:204: base::ASCIIToUTF16(url.scheme() + "\\shell\\open\\command"); On 2016/10/05 14:23:36, gab wrote: ...
4 years, 2 months ago (2016-10-06 00:56:39 UTC) #49
gab
shell_integration_win.cc lgtm https://codereview.chromium.org/2076253002/diff/160001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/2076253002/diff/160001/chrome/browser/shell_integration_win.cc#newcode204 chrome/browser/shell_integration_win.cc:204: base::ASCIIToUTF16(url.scheme() + "\\shell\\open\\command"); On 2016/10/06 00:56:38, dominickn ...
4 years, 2 months ago (2016-10-06 16:07:04 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2076253002/220001
4 years, 2 months ago (2016-10-06 20:39:19 UTC) #60
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 2 months ago (2016-10-06 20:49:21 UTC) #62
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 20:51:29 UTC) #64
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/0c9a5065a8a7c4b760b79eb996548b1921ed05ea
Cr-Commit-Position: refs/heads/master@{#423664}

Powered by Google App Engine
This is Rietveld 408576698