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

Issue 1105143005: Issue 465302:System wide share options on Mac

Created:
5 years, 8 months ago by sarka
Modified:
5 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This is a patch for allowing users on mac to share a page via Email, Messages, FaceBook, Twitter etc. With this change 'Email page location' would no longer be needed. The implementation uses NSSharingServices framework available on OSX 10.9 SDK and higher. TEST: Navigate to File->Share-><Pick one from the options (Email, Twitter, Messages etc). Appropriate handler will take care of the actions from there. BUG=465302

Patch Set 1 #

Patch Set 2 : System wide share menu for Mac #

Total comments: 53

Patch Set 3 : Added unit tests, honored Cocoa memory management issues #

Total comments: 33

Patch Set 4 : Adds an attachment to Mail #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -0 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/app_controller_mac.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 5 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/share_menu/share_menu_controller.h View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/share_menu/share_menu_controller.mm View 1 2 3 1 chunk +314 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/share_menu/share_menu_manager.h View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/share_menu/share_menu_manager.mm View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
shrike
Hello sarka, Most of my feedback is formatting nits (Chromium project likes code formatted in ...
5 years, 7 months ago (2015-05-05 18:20:24 UTC) #2
sarka
Hi @shrike I didn't realize that I had forgotten to uncheck 'send email' to developers ...
5 years, 7 months ago (2015-05-05 18:28:31 UTC) #3
shrike
On 2015/05/05 18:28:31, sarka wrote: > Hi @shrike > > I didn't realize that I ...
5 years, 7 months ago (2015-05-05 18:30:25 UTC) #4
Avi (use Gerrit)
Adopting. https://codereview.chromium.org/1105143005/diff/20001/.gitignore File .gitignore (right): https://codereview.chromium.org/1105143005/diff/20001/.gitignore#newcode1 .gitignore:1: *.mk This file is inappropriate to have in ...
5 years, 7 months ago (2015-05-05 18:47:51 UTC) #6
Avi (use Gerrit)
Oh, didn't realize that you accidentally sent this out. My comments still apply, but in ...
5 years, 7 months ago (2015-05-05 19:01:33 UTC) #7
sarka
On 2015/05/05 19:01:33, Avi wrote: > Oh, didn't realize that you accidentally sent this out. ...
5 years, 7 months ago (2015-05-05 19:04:32 UTC) #8
sarka
On 2015/05/05 19:04:32, sarka wrote: > On 2015/05/05 19:01:33, Avi wrote: > > Oh, didn't ...
5 years, 7 months ago (2015-05-15 03:30:57 UTC) #10
sarka
https://codereview.chromium.org/1105143005/diff/20001/chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm File chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm (right): https://codereview.chromium.org/1105143005/diff/20001/chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm#newcode54 chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm:54: On 2015/05/05 18:20:24, shrike wrote: > Is there someplace ...
5 years, 7 months ago (2015-05-15 03:35:44 UTC) #12
Avi (use Gerrit)
Again, I request that you read the style guide, https://google-styleguide.googlecode.com/svn/trunk/objcguide.xml. https://codereview.chromium.org/1105143005/diff/60001/.gitignore File .gitignore (right): https://codereview.chromium.org/1105143005/diff/60001/.gitignore#newcode440 ...
5 years, 7 months ago (2015-05-15 16:13:09 UTC) #13
sarka
https://codereview.chromium.org/1105143005/diff/60001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/1105143005/diff/60001/chrome/browser/ui/browser_command_controller.cc#newcode1139 chrome/browser/ui/browser_command_controller.cc:1139: BrowserList::SetLastActive(browser_); On 2015/05/15 16:13:08, Avi wrote: > Are the ...
5 years, 7 months ago (2015-05-15 16:36:55 UTC) #14
Avi (use Gerrit)
https://codereview.chromium.org/1105143005/diff/60001/chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm File chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm (right): https://codereview.chromium.org/1105143005/diff/60001/chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm#newcode111 chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm:111: } I mean this whole "if" block. You are ...
5 years, 7 months ago (2015-05-15 16:40:33 UTC) #15
sarka
https://codereview.chromium.org/1105143005/diff/60001/chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm File chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm (right): https://codereview.chromium.org/1105143005/diff/60001/chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm#newcode111 chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.mm:111: } On 2015/05/15 16:40:33, Avi wrote: > I mean ...
5 years, 7 months ago (2015-05-15 16:45:47 UTC) #16
shrike
Aside from the style issues, this code does not work correctly: 1. File -> Share ...
5 years, 7 months ago (2015-05-15 17:10:50 UTC) #17
sarka
5 years, 7 months ago (2015-05-15 17:14:33 UTC) #18
On 2015/05/15 17:10:50, shrike wrote:
> Aside from the style issues, this code does not work correctly:
> 
> 1. File -> Share -> Email Page Location sends a pretty ugly looking URL, where
> the forward slashes, for example, are %2Fs
> 
> 2. Safari's comparable command File -> Share -> Email This Page sets the Mail
> message subject line to the title of the browser tab, and fills the mail
message
> body with HTML. I assume it should be possible for us to do the same, and I
> would aim for that high bar
> 
> 3. I created a browser window with Tab A and Tab B. With Tab A active I get
Tab
> A's URL when I choose File -> Share -> Email Page Location (right). With Tab B
> active, I still get Tab A's URL. If I drag Tab B so that it's the first tab in
> the window, and make Tab B the active tab in the window, I still get Tab A's
> URL.
> 
> 4. If I create another window and choose File -> Share -> Email Page Location,
I
> am still getting the URL for Tab A from the other window.

Thanks for your comments. I will revisit all of these issues and address them.

Powered by Google App Engine
This is Rietveld 408576698