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

Issue 2287583003: Linux: Remove --wm-user-time-ms command line argument (Closed)

Created:
4 years, 3 months ago by Tom (Use chromium acct)
Modified:
4 years, 3 months ago
Reviewers:
Daniel Erat, sky, jwd
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, tdresser+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Linux: Remove --wm-user-time-ms command line argument CL ca3656d added the --wm-user-time-ms command line argument so that window activation would be more reliable. However, its implementation was awkward and complex, and is no longer needed now that X11EventSource::GetTimestamp() provides the correct functionality. Explanation: X11EventSource::GetTimestamp() gives the timestamp of the event currently being dispatched. If there's no event being dispatched, or the event does not have a timestamp, we fall back on making a round trip. Simply using last_seen_server_time like we did with activation before ca3656d meant that the timestamp we used could be out of date if we were activating in response to anything other than a user input event. This is what led to the --wm-user-time-ms hack. Committed: https://crrev.com/e529d3df7073d643f2176bbc4e6534f00d072209 Cr-Commit-Position: refs/heads/master@{#416411}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename #

Total comments: 2

Patch Set 3 : Deprecate histogram #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -88 lines) Patch
M chrome/browser/chrome_browser_main_extra_parts_x11.cc View 2 chunks +0 lines, -19 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 2 chunks +0 lines, -20 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M ui/base/x/selection_owner.cc View 1 chunk +3 lines, -7 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.h View 1 3 chunks +6 lines, -14 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.cc View 1 6 chunks +7 lines, -24 lines 0 comments Download

Messages

Total messages: 35 (23 generated)
Tom (Use chromium acct)
4 years, 3 months ago (2016-08-27 00:02:59 UTC) #2
Daniel Erat
lgtm https://codereview.chromium.org/2287583003/diff/1/ui/events/platform/x11/x11_event_source.cc File ui/events/platform/x11/x11_event_source.cc (right): https://codereview.chromium.org/2287583003/diff/1/ui/events/platform/x11/x11_event_source.cc#newcode179 ui/events/platform/x11/x11_event_source.cc:179: "Event.Latency.X11EventSource.UpdateServerTime", nit: time to consider fixing this histogram ...
4 years, 3 months ago (2016-08-27 01:47:07 UTC) #4
sky
LGTM
4 years, 3 months ago (2016-08-29 15:59:55 UTC) #5
Tom (Use chromium acct)
+jwd for histograms https://codereview.chromium.org/2287583003/diff/1/ui/events/platform/x11/x11_event_source.cc File ui/events/platform/x11/x11_event_source.cc (right): https://codereview.chromium.org/2287583003/diff/1/ui/events/platform/x11/x11_event_source.cc#newcode179 ui/events/platform/x11/x11_event_source.cc:179: "Event.Latency.X11EventSource.UpdateServerTime", On 2016/08/27 01:47:07, Daniel Erat ...
4 years, 3 months ago (2016-08-30 19:14:58 UTC) #9
jwd
https://codereview.chromium.org/2287583003/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2287583003/diff/60001/tools/metrics/histograms/histograms.xml#oldcode13485 tools/metrics/histograms/histograms.xml:13485: - units="microseconds"> Please mark this as obsolete with a ...
4 years, 3 months ago (2016-08-31 14:13:00 UTC) #18
Tom (Use chromium acct)
https://codereview.chromium.org/2287583003/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2287583003/diff/60001/tools/metrics/histograms/histograms.xml#oldcode13485 tools/metrics/histograms/histograms.xml:13485: - units="microseconds"> On 2016/08/31 14:13:00, jwd wrote: > Please ...
4 years, 3 months ago (2016-08-31 17:27:48 UTC) #19
jwd
lgtm
4 years, 3 months ago (2016-08-31 20:15:22 UTC) #20
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/2287583003/80001
4 years, 3 months ago (2016-08-31 20:25:09 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/288489)
4 years, 3 months ago (2016-08-31 21:19:22 UTC) #25
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/2287583003/80001
4 years, 3 months ago (2016-09-02 22:47:18 UTC) #31
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 3 months ago (2016-09-03 00:33:22 UTC) #33
commit-bot: I haz the power
4 years, 3 months ago (2016-09-03 00:34:09 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e529d3df7073d643f2176bbc4e6534f00d072209
Cr-Commit-Position: refs/heads/master@{#416411}

Powered by Google App Engine
This is Rietveld 408576698