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

Issue 2186813002: Linux: Support the --class argument (Reland) (Closed)

Created:
4 years, 4 months ago by Tom (Use chromium acct)
Modified:
4 years, 4 months ago
Reviewers:
Lei Zhang, benwells
CC:
chromium-reviews, tfarina, jennb, jianli, Dmitry Titov, dcheng, sky, Elliot Glaysher, benwells
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Linux: Support the --class argument (Reland) It appears we lost support for --class when we stopped using gtk for our windowing. This CL adds that feature back. BUG=118613 Committed: https://crrev.com/b4a38edc75149162fcbdf01e42d5411cf8e72520 Committed: https://crrev.com/12d8758651726f96ba4d34d63fb9ce39623ca215 Cr-Original-Commit-Position: refs/heads/master@{#408709} Cr-Commit-Position: refs/heads/master@{#408756}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add unit test #

Total comments: 4

Patch Set 3 : Add internal namespace #

Total comments: 15

Patch Set 4 : Refactor #

Total comments: 6

Patch Set 5 : Revert gtk2_util.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -30 lines) Patch
M chrome/browser/shell_integration_linux.h View 1 2 3 2 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/shell_integration_linux.cc View 1 2 3 2 chunks +55 lines, -5 lines 0 comments Download
M chrome/browser/shell_integration_linux_unittest.cc View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.cc View 1 chunk +11 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/panels/panel_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 54 (27 generated)
Tom (Use chromium acct)
erg needed for: chrome/browser/shell_integration_linux.cc chrome/browser/shell_integration_linux.h sky: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.cc chrome/browser/ui/views/panels/panel_view.cc
4 years, 4 months ago (2016-07-27 02:07:00 UTC) #4
sky
https://codereview.chromium.org/2186813002/diff/1/chrome/browser/shell_integration_linux.cc File chrome/browser/shell_integration_linux.cc (right): https://codereview.chromium.org/2186813002/diff/1/chrome/browser/shell_integration_linux.cc#newcode211 chrome/browser/shell_integration_linux.cc:211: std::string GetDesktopBaseName() { Please add comment. https://codereview.chromium.org/2186813002/diff/1/chrome/browser/shell_integration_linux.h File chrome/browser/shell_integration_linux.h ...
4 years, 4 months ago (2016-07-27 15:17:00 UTC) #9
Tom (Use chromium acct)
https://codereview.chromium.org/2186813002/diff/1/chrome/browser/shell_integration_linux.cc File chrome/browser/shell_integration_linux.cc (right): https://codereview.chromium.org/2186813002/diff/1/chrome/browser/shell_integration_linux.cc#newcode211 chrome/browser/shell_integration_linux.cc:211: std::string GetDesktopBaseName() { On 2016/07/27 15:17:00, sky wrote: > ...
4 years, 4 months ago (2016-07-27 19:33:10 UTC) #11
sky
https://codereview.chromium.org/2186813002/diff/20001/chrome/browser/shell_integration_linux.h File chrome/browser/shell_integration_linux.h (right): https://codereview.chromium.org/2186813002/diff/20001/chrome/browser/shell_integration_linux.h#newcode41 chrome/browser/shell_integration_linux.h:41: std::string GetProgramClassClass(); On 2016/07/27 19:33:09, Tom Anderson wrote: > ...
4 years, 4 months ago (2016-07-27 19:58:04 UTC) #13
Tom (Use chromium acct)
https://codereview.chromium.org/2186813002/diff/20001/chrome/browser/shell_integration_linux.h File chrome/browser/shell_integration_linux.h (right): https://codereview.chromium.org/2186813002/diff/20001/chrome/browser/shell_integration_linux.h#newcode41 chrome/browser/shell_integration_linux.h:41: std::string GetProgramClassClass(); On 2016/07/27 19:58:04, sky wrote: > On ...
4 years, 4 months ago (2016-07-27 22:04:34 UTC) #16
sky
https://codereview.chromium.org/2186813002/diff/20001/chrome/browser/shell_integration_linux.h File chrome/browser/shell_integration_linux.h (right): https://codereview.chromium.org/2186813002/diff/20001/chrome/browser/shell_integration_linux.h#newcode41 chrome/browser/shell_integration_linux.h:41: std::string GetProgramClassClass(); On 2016/07/27 22:04:34, Tom Anderson wrote: > ...
4 years, 4 months ago (2016-07-27 22:40:21 UTC) #17
Tom (Use chromium acct)
On 2016/07/27 22:40:21, sky wrote: > https://codereview.chromium.org/2186813002/diff/20001/chrome/browser/shell_integration_linux.h > File chrome/browser/shell_integration_linux.h (right): > > https://codereview.chromium.org/2186813002/diff/20001/chrome/browser/shell_integration_linux.h#newcode41 > ...
4 years, 4 months ago (2016-07-27 23:42:05 UTC) #18
sky
What would help is if you made it clear the one that takes the desktop ...
4 years, 4 months ago (2016-07-28 14:52:49 UTC) #19
Tom (Use chromium acct)
+thestig On 2016/07/28 14:52:49, sky wrote: > What would help is if you made it ...
4 years, 4 months ago (2016-07-28 20:45:08 UTC) #22
Lei Zhang
Looking good. https://codereview.chromium.org/2186813002/diff/40001/chrome/browser/shell_integration_linux.cc File chrome/browser/shell_integration_linux.cc (right): https://codereview.chromium.org/2186813002/diff/40001/chrome/browser/shell_integration_linux.cc#newcode217 chrome/browser/shell_integration_linux.cc:217: std::size_t last = desktop_file_name.find(".desktop"); BTW, std::string::find() in ...
4 years, 4 months ago (2016-07-28 21:28:47 UTC) #23
benwells
https://codereview.chromium.org/2186813002/diff/40001/chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.cc File chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.cc (right): https://codereview.chromium.org/2186813002/diff/40001/chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.cc#newcode40 chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.cc:40: // This window is a hosted app or v1 ...
4 years, 4 months ago (2016-07-28 22:27:23 UTC) #25
Tom (Use chromium acct)
https://codereview.chromium.org/2186813002/diff/40001/chrome/browser/shell_integration_linux.cc File chrome/browser/shell_integration_linux.cc (right): https://codereview.chromium.org/2186813002/diff/40001/chrome/browser/shell_integration_linux.cc#newcode217 chrome/browser/shell_integration_linux.cc:217: std::size_t last = desktop_file_name.find(".desktop"); On 2016/07/28 21:28:46, Lei Zhang ...
4 years, 4 months ago (2016-07-28 23:02:13 UTC) #26
Lei Zhang
lgtm https://codereview.chromium.org/2186813002/diff/60001/chrome/browser/shell_integration_linux.cc File chrome/browser/shell_integration_linux.cc (right): https://codereview.chromium.org/2186813002/diff/60001/chrome/browser/shell_integration_linux.cc#newcode613 chrome/browser/shell_integration_linux.cc:613: if (command_line.HasSwitch(switches::kWmClass)) Do we really want to return ...
4 years, 4 months ago (2016-07-29 00:41:43 UTC) #31
Tom (Use chromium acct)
https://codereview.chromium.org/2186813002/diff/60001/chrome/browser/shell_integration_linux.cc File chrome/browser/shell_integration_linux.cc (right): https://codereview.chromium.org/2186813002/diff/60001/chrome/browser/shell_integration_linux.cc#newcode613 chrome/browser/shell_integration_linux.cc:613: if (command_line.HasSwitch(switches::kWmClass)) On 2016/07/29 00:41:43, Lei Zhang wrote: > ...
4 years, 4 months ago (2016-07-29 18:52:34 UTC) #32
Lei Zhang
https://codereview.chromium.org/2186813002/diff/60001/chrome/browser/shell_integration_linux.cc File chrome/browser/shell_integration_linux.cc (right): https://codereview.chromium.org/2186813002/diff/60001/chrome/browser/shell_integration_linux.cc#newcode613 chrome/browser/shell_integration_linux.cc:613: if (command_line.HasSwitch(switches::kWmClass)) On 2016/07/29 18:52:34, Tom Anderson wrote: > ...
4 years, 4 months ago (2016-07-29 18:58:20 UTC) #33
Lei Zhang
https://codereview.chromium.org/2186813002/diff/60001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/2186813002/diff/60001/chrome/common/chrome_switches.cc#newcode1141 chrome/common/chrome_switches.cc:1141: // The same as the --class argument in X ...
4 years, 4 months ago (2016-07-29 19:03:39 UTC) #34
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/2186813002/60001
4 years, 4 months ago (2016-07-29 19:05:15 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-29 19:12:59 UTC) #38
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/b4a38edc75149162fcbdf01e42d5411cf8e72520 Cr-Commit-Position: refs/heads/master@{#408709}
4 years, 4 months ago (2016-07-29 19:15:00 UTC) #40
pavely
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2193393002/ by pavely@chromium.org. ...
4 years, 4 months ago (2016-07-29 19:55:35 UTC) #41
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/2186813002/80001
4 years, 4 months ago (2016-07-29 20:34:08 UTC) #45
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-29 21:17:59 UTC) #47
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/12d8758651726f96ba4d34d63fb9ce39623ca215 Cr-Commit-Position: refs/heads/master@{#408756}
4 years, 4 months ago (2016-07-29 21:20:09 UTC) #49
Lei Zhang
Patch set 5 is the reland, right? Please say something before relanding so it's more ...
4 years, 4 months ago (2016-07-29 21:24:47 UTC) #50
Tom (Use chromium acct)
On 2016/07/29 21:24:47, Lei Zhang wrote: > Patch set 5 is the reland, right? Please ...
4 years, 4 months ago (2016-07-29 22:51:05 UTC) #51
Lei Zhang
On 2016/07/29 22:51:05, Tom Anderson wrote: > On 2016/07/29 21:24:47, Lei Zhang wrote: > > ...
4 years, 4 months ago (2016-07-29 22:57:10 UTC) #52
Tom (Use chromium acct)
4 years, 4 months ago (2016-07-29 23:51:23 UTC) #54
Message was sent while issue was closed.
On 2016/07/29 22:57:10, Lei Zhang wrote:
> On 2016/07/29 22:51:05, Tom Anderson wrote:
> > On 2016/07/29 21:24:47, Lei Zhang wrote:
> > > And why revert gtk2_util.cc? Why not just include the missing header?
> > 
> > libgtk2ui.so does not link against the necessary dependencies.
> 
> But we usually don't do Chrome builds with component=shared_library and it
only
> fails in Chrome branded builds.
> 
> If you did a Chrome branded component=shared_library build... does it actually
> break?

Good call

New CL is here https://codereview.chromium.org/2195063003/
Tested on component debug build and an official build

Powered by Google App Engine
This is Rietveld 408576698