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

Issue 181493011: Windows: Automatically associate file types with Chrome apps. (Closed)

Created:
6 years, 9 months ago by Matt Giuca
Modified:
6 years, 1 month ago
Reviewers:
jackhou1, Nico
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, benwells, jackhou1
Visibility:
Public.

Description

Windows: Automatically associate file types with Chrome apps. Currently only works if --enable-apps-file-associations is on. The Chrome app appears on the "Open with" menu and "Choose default program" dialog for files of any type mentioned in the app's manifest. If there is no existing app associated with the file type, the Chrome app becomes the default handler. Upon app installation, creates a copy of the app_shim executable to serve as a portable and uniquely named way to run the app. Any file types mentioned in the file_handlers section of the app manifest are associated with the shim. BUG=130455 Committed: https://crrev.com/fcffcb17a43f6d0ac30cc5b8260028ad6489d6e9 Cr-Commit-Position: refs/heads/master@{#302755}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Complete rewrite (note that the bulk of the work is now in shell_util). #

Total comments: 10

Patch Set 4 : Rebase. #

Patch Set 5 : Update for the new version of app_shim_win. #

Patch Set 6 : Rebase. #

Patch Set 7 : Fix compile and use new .exe name. #

Patch Set 8 : Cleanup. #

Patch Set 9 : Respond to Jack's comments. #

Total comments: 5

Patch Set 10 : Revert unnecessary change. #

Patch Set 11 : New scheme to handle failures adding associations. #

Patch Set 12 : Revert changes to about_flags (not ready yet). #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -4 lines) Patch
M chrome/browser/web_applications/web_app_win.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +145 lines, -4 lines 1 comment Download

Messages

Total messages: 21 (8 generated)
Matt Giuca
Here's the initial CL to get a basic file association (with the shim; see the ...
6 years, 2 months ago (2014-10-24 09:54:36 UTC) #3
jackhou1
Looks good, but I guess we have to wait for the outcome of that other ...
6 years, 1 month ago (2014-10-27 02:13:28 UTC) #4
Matt Giuca
PTAL. (Still blocked on the app_shim CL, but we should be able to get this ...
6 years, 1 month ago (2014-11-04 06:00:09 UTC) #7
jackhou1
https://codereview.chromium.org/181493011/diff/220001/chrome/browser/web_applications/web_app_win.cc File chrome/browser/web_applications/web_app_win.cc (right): https://codereview.chromium.org/181493011/diff/220001/chrome/browser/web_applications/web_app_win.cc#newcode498 chrome/browser/web_applications/web_app_win.cc:498: base::DeleteFile(app_shim_path, false); Do we need to remove any just-added ...
6 years, 1 month ago (2014-11-04 06:52:55 UTC) #8
Matt Giuca
https://codereview.chromium.org/181493011/diff/220001/chrome/browser/web_applications/web_app_win.cc File chrome/browser/web_applications/web_app_win.cc (right): https://codereview.chromium.org/181493011/diff/220001/chrome/browser/web_applications/web_app_win.cc#newcode498 chrome/browser/web_applications/web_app_win.cc:498: base::DeleteFile(app_shim_path, false); Ugh, yeah we do if we're going ...
6 years, 1 month ago (2014-11-04 07:16:24 UTC) #9
jackhou1
lgtm https://codereview.chromium.org/181493011/diff/220001/chrome/browser/web_applications/web_app_win.cc File chrome/browser/web_applications/web_app_win.cc (right): https://codereview.chromium.org/181493011/diff/220001/chrome/browser/web_applications/web_app_win.cc#newcode498 chrome/browser/web_applications/web_app_win.cc:498: base::DeleteFile(app_shim_path, false); On 2014/11/04 07:16:24, Matt Giuca wrote: ...
6 years, 1 month ago (2014-11-04 21:40:17 UTC) #10
Matt Giuca
As discussed, I've removed kOsWin from about_flags. The flag shouldn't be available to Windows users ...
6 years, 1 month ago (2014-11-05 03:27:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/181493011/270001
6 years, 1 month ago (2014-11-05 03:28:11 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/181493011/270001
6 years, 1 month ago (2014-11-05 03:40:32 UTC) #16
commit-bot: I haz the power
Committed patchset #12 (id:270001)
6 years, 1 month ago (2014-11-05 04:19:30 UTC) #17
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/fcffcb17a43f6d0ac30cc5b8260028ad6489d6e9 Cr-Commit-Position: refs/heads/master@{#302755}
6 years, 1 month ago (2014-11-05 04:20:10 UTC) #18
Nico
https://codereview.chromium.org/181493011/diff/270001/chrome/browser/web_applications/web_app_win.cc File chrome/browser/web_applications/web_app_win.cc (right): https://codereview.chromium.org/181493011/diff/270001/chrome/browser/web_applications/web_app_win.cc#newcode621 chrome/browser/web_applications/web_app_win.cc:621: if (switches::kEnableAppsFileAssociations) { ..\..\chrome\browser\web_applications\web_app_win.cc(621,7) : warning(clang): address of array ...
6 years, 1 month ago (2014-11-18 23:22:13 UTC) #20
Matt Giuca
6 years, 1 month ago (2014-11-19 00:37:09 UTC) #21
Message was sent while issue was closed.
Wow... that's a bad one. Thanks for spotting this. http://crbug.com/434552.

Powered by Google App Engine
This is Rietveld 408576698