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

Issue 324593004: Windows: Add an "Open in Adobe Reader" menu item for PDF files in the download shelf. (Closed)

Created:
6 years, 6 months ago by Lei Zhang
Modified:
6 years, 5 months ago
Reviewers:
asanka, jam
CC:
chromium-reviews, benjhayden+dwatch_chromium.org
Visibility:
Public.

Description

Windows: Add an "Open in Adobe Reader" menu item for PDF files in the download shelf. BUG=370746 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281172

Patch Set 1 : #

Total comments: 16

Patch Set 2 : Address comments, check AcroRd32.exe version, set/honor prefs #

Total comments: 4

Patch Set 3 : make things actually work, address comments #

Patch Set 4 : rebase #

Patch Set 5 : fix win #

Patch Set 6 : fix win installer #

Patch Set 7 : fix build #

Total comments: 8

Patch Set 8 : leave content/ alone #

Total comments: 8

Patch Set 9 : rebase #

Patch Set 10 : address comments, drop grd cleanup #

Patch Set 11 : self review #

Total comments: 4

Patch Set 12 : address comments #

Patch Set 13 : rebase #

Patch Set 14 : fix merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+552 lines, -137 lines) Patch
M chrome/browser/download/chrome_download_manager_delegate.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +32 lines, -23 lines 0 comments Download
M chrome/browser/download/download_prefs.h View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/download/download_prefs.cc View 1 2 3 4 5 6 7 8 9 8 chunks +44 lines, -1 line 0 comments Download
M chrome/browser/download/download_shelf_context_menu.h View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/download/download_shelf_context_menu.cc View 1 2 3 4 5 6 7 8 9 12 chunks +70 lines, -14 lines 0 comments Download
M chrome/browser/download/download_target_determiner.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/download/download_target_determiner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +61 lines, -5 lines 0 comments Download
A chrome/browser/ui/pdf/adobe_reader_info_win.h View 1 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/ui/pdf/adobe_reader_info_win.cc View 1 2 3 4 5 6 7 1 chunk +184 lines, -0 lines 0 comments Download
M chrome/browser/ui/pdf/pdf_unsupported_feature.cc View 1 2 8 chunks +51 lines, -93 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Lei Zhang
Not 100% ready, but PTAL and let me know if you have any concerns. https://codereview.chromium.org/324593004/diff/20001/chrome/browser/download/download_shelf_context_menu.cc ...
6 years, 6 months ago (2014-06-09 09:04:46 UTC) #1
jam
https://codereview.chromium.org/324593004/diff/20001/chrome/browser/download/download_shelf_context_menu.cc File chrome/browser/download/download_shelf_context_menu.cc (right): https://codereview.chromium.org/324593004/diff/20001/chrome/browser/download/download_shelf_context_menu.cc#newcode52 chrome/browser/download/download_shelf_context_menu.cc:52: #if defined(ENABLE_PLUGIN_INSTALLATION) nit: OS_WIN implies ENABLE_PLUGIN_INSTALLATION... https://codereview.chromium.org/324593004/diff/20001/chrome/browser/download/download_shelf_context_menu.cc#newcode56 chrome/browser/download/download_shelf_context_menu.cc:56: GetAdobeReaderPluginInfo(NULL, ...
6 years, 6 months ago (2014-06-09 19:49:10 UTC) #2
asanka
https://codereview.chromium.org/324593004/diff/20001/chrome/browser/download/download_shelf_context_menu.cc File chrome/browser/download/download_shelf_context_menu.cc (right): https://codereview.chromium.org/324593004/diff/20001/chrome/browser/download/download_shelf_context_menu.cc#newcode368 chrome/browser/download/download_shelf_context_menu.cc:368: int DownloadShelfContextMenu::GetAlwaysOpenCommandId() const { Nit: This returns a string ...
6 years, 6 months ago (2014-06-09 21:22:23 UTC) #3
Lei Zhang
https://codereview.chromium.org/324593004/diff/20001/chrome/browser/download/download_shelf_context_menu.cc File chrome/browser/download/download_shelf_context_menu.cc (right): https://codereview.chromium.org/324593004/diff/20001/chrome/browser/download/download_shelf_context_menu.cc#newcode52 chrome/browser/download/download_shelf_context_menu.cc:52: #if defined(ENABLE_PLUGIN_INSTALLATION) On 2014/06/09 19:49:09, jam wrote: > nit: ...
6 years, 6 months ago (2014-06-12 05:04:26 UTC) #4
asanka
For background, the current download open behavior is roughly: 1. When determining the filename for ...
6 years, 6 months ago (2014-06-12 16:50:55 UTC) #5
jam
On 2014/06/12 16:50:55, asanka wrote: > For background, the current download open behavior is roughly: ...
6 years, 6 months ago (2014-06-12 18:18:18 UTC) #6
jam
https://codereview.chromium.org/324593004/diff/20001/chrome/browser/ui/pdf/adobe_reader_info_win.cc File chrome/browser/ui/pdf/adobe_reader_info_win.cc (right): https://codereview.chromium.org/324593004/diff/20001/chrome/browser/ui/pdf/adobe_reader_info_win.cc#newcode73 chrome/browser/ui/pdf/adobe_reader_info_win.cc:73: } On 2014/06/12 05:04:26, Lei Zhang wrote: > On ...
6 years, 6 months ago (2014-06-12 18:19:01 UTC) #7
asanka
On 2014/06/12 18:18:18, jam wrote: > On 2014/06/12 16:50:55, asanka wrote: > > For background, ...
6 years, 6 months ago (2014-06-12 21:46:14 UTC) #8
Lei Zhang
PTAL. This follows the requirement clarification and follows the advice to modify IsOpenInBrowserPreferreredForFile(). https://codereview.chromium.org/324593004/diff/60001/chrome/browser/download/download_shelf_context_menu.cc File ...
6 years, 6 months ago (2014-06-18 13:48:29 UTC) #9
jam
sorry for the delay, just saw this. I defer to asanka for all the download ...
6 years, 6 months ago (2014-06-19 16:37:07 UTC) #10
Lei Zhang
https://codereview.chromium.org/324593004/diff/180001/chrome/browser/ui/pdf/adobe_reader_info_win.cc File chrome/browser/ui/pdf/adobe_reader_info_win.cc (right): https://codereview.chromium.org/324593004/diff/180001/chrome/browser/ui/pdf/adobe_reader_info_win.cc#newcode162 chrome/browser/ui/pdf/adobe_reader_info_win.cc:162: return file_version.IsValid() && !file_version.IsOlderThan(kSecureVersion); On 2014/06/19 16:37:06, jam wrote: ...
6 years, 6 months ago (2014-06-19 18:12:30 UTC) #11
Lei Zhang
https://codereview.chromium.org/324593004/diff/180001/content/public/common/registry_utils_win.h File content/public/common/registry_utils_win.h (right): https://codereview.chromium.org/324593004/diff/180001/content/public/common/registry_utils_win.h#newcode21 content/public/common/registry_utils_win.h:21: // Windows registry path constants and utility functions. On ...
6 years, 6 months ago (2014-06-19 18:19:44 UTC) #12
Lei Zhang
https://codereview.chromium.org/324593004/diff/180001/content/public/common/registry_utils_win.h File content/public/common/registry_utils_win.h (right): https://codereview.chromium.org/324593004/diff/180001/content/public/common/registry_utils_win.h#newcode21 content/public/common/registry_utils_win.h:21: // Windows registry path constants and utility functions. On ...
6 years, 6 months ago (2014-06-20 06:22:51 UTC) #13
Lei Zhang
I pulled out adding the new string in https://codereview.chromium.org/342323009/ and will hopefully get that in ...
6 years, 6 months ago (2014-06-20 22:30:06 UTC) #14
asanka
Shall we hash out the expected UX for the context menu? I'm not sure we ...
6 years, 6 months ago (2014-06-25 03:55:08 UTC) #15
Lei Zhang
On 2014/06/25 03:55:08, asanka wrote: > Shall we hash out the expected UX for the ...
6 years, 6 months ago (2014-06-26 08:01:59 UTC) #16
Lei Zhang
https://codereview.chromium.org/324593004/diff/200001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): https://codereview.chromium.org/324593004/diff/200001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode709 chrome/browser/download/chrome_download_manager_delegate.cc:709: DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(profile_); On 2014/06/25 03:55:07, asanka wrote: ...
6 years, 6 months ago (2014-06-26 08:06:12 UTC) #17
asanka
https://codereview.chromium.org/324593004/diff/260001/chrome/browser/download/download_target_determiner.cc File chrome/browser/download/download_target_determiner.cc (right): https://codereview.chromium.org/324593004/diff/260001/chrome/browser/download/download_target_determiner.cc#newcode518 chrome/browser/download/download_target_determiner.cc:518: if (local_path_.Extension() == FILE_PATH_LITERAL(".pdf")) Why skip the check if ...
6 years, 5 months ago (2014-07-01 19:55:15 UTC) #18
asanka
On 2014/07/01 19:55:15, asanka wrote: > https://codereview.chromium.org/324593004/diff/260001/chrome/browser/download/download_target_determiner.cc > File chrome/browser/download/download_target_determiner.cc (right): > > https://codereview.chromium.org/324593004/diff/260001/chrome/browser/download/download_target_determiner.cc#newcode518 > ...
6 years, 5 months ago (2014-07-01 19:56:18 UTC) #19
Lei Zhang
https://codereview.chromium.org/324593004/diff/260001/chrome/browser/download/download_target_determiner.cc File chrome/browser/download/download_target_determiner.cc (right): https://codereview.chromium.org/324593004/diff/260001/chrome/browser/download/download_target_determiner.cc#newcode518 chrome/browser/download/download_target_determiner.cc:518: if (local_path_.Extension() == FILE_PATH_LITERAL(".pdf")) On 2014/07/01 19:55:14, asanka wrote: ...
6 years, 5 months ago (2014-07-01 20:47:57 UTC) #20
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 5 months ago (2014-07-02 18:52:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/324593004/320001
6 years, 5 months ago (2014-07-02 18:52:55 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-02 19:08:07 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-02 19:36:06 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/34556)
6 years, 5 months ago (2014-07-02 19:36:06 UTC) #25
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 5 months ago (2014-07-02 23:15:49 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/324593004/320001
6 years, 5 months ago (2014-07-02 23:17:29 UTC) #27
commit-bot: I haz the power
6 years, 5 months ago (2014-07-03 05:49:09 UTC) #28
Message was sent while issue was closed.
Change committed as 281172

Powered by Google App Engine
This is Rietveld 408576698