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

Issue 1154023007: [Chromoting] Fix os detection logic in logs. (Closed)

Created:
5 years, 6 months ago by kelvinp
Modified:
5 years, 6 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org, Sriram
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cause: From the user agent strings in our server logs, the offending user agents are Morzilla/5.0 (X11; CrOS x86_64 6457.107.0) which fails to match 'CrOS ([a-zA-Z0-9]*) ([0-9.]*)' because _ is missing in the first match group. This CL: 1. Fixes the regular expression. 2. Unifies the duplicated platform detection logic in our logs and platform.js 3. Implements an unit test using key examples from the server logs as test cases. BUG=495206 Committed: https://crrev.com/e989257af8a63fa4e5780635259b04663247ab5b Cr-Commit-Position: refs/heads/master@{#333208}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Reviewer's feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -105 lines) Patch
M remoting/remoting_webapp_files.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/webapp/base/js/platform.js View 1 5 chunks +95 lines, -27 lines 0 comments Download
A remoting/webapp/base/js/platform_unittest.js View 1 1 chunk +153 lines, -0 lines 0 comments Download
M remoting/webapp/base/js/server_log_entry.js View 1 2 chunks +8 lines, -78 lines 0 comments Download
M remoting/webapp/files.gni View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
kelvinp
PTAL https://codereview.chromium.org/1154023007/diff/1/remoting/webapp/base/js/platform.js File remoting/webapp/base/js/platform.js (right): https://codereview.chromium.org/1154023007/diff/1/remoting/webapp/base/js/platform.js#newcode78 remoting/webapp/base/js/platform.js:78: remoting.getSystemInfo = function() { mainly copied from remoting.ServerLogEntry.extractHostData_
5 years, 6 months ago (2015-06-06 00:48:47 UTC) #2
Jamie
LGTM with naming nits. https://codereview.chromium.org/1154023007/diff/1/remoting/webapp/base/js/platform.js File remoting/webapp/base/js/platform.js (right): https://codereview.chromium.org/1154023007/diff/1/remoting/webapp/base/js/platform.js#newcode24 remoting/webapp/base/js/platform.js:24: * chrome_version: string I realize ...
5 years, 6 months ago (2015-06-06 01:05:41 UTC) #3
kelvinp
FYI https://codereview.chromium.org/1154023007/diff/1/remoting/webapp/base/js/platform.js File remoting/webapp/base/js/platform.js (right): https://codereview.chromium.org/1154023007/diff/1/remoting/webapp/base/js/platform.js#newcode24 remoting/webapp/base/js/platform.js:24: * chrome_version: string On 2015/06/06 01:05:41, Jamie wrote: ...
5 years, 6 months ago (2015-06-06 02:09:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1154023007/20001
5 years, 6 months ago (2015-06-06 02:10:05 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 6 months ago (2015-06-06 02:56:52 UTC) #8
commit-bot: I haz the power
5 years, 6 months ago (2015-06-06 02:58:31 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e989257af8a63fa4e5780635259b04663247ab5b
Cr-Commit-Position: refs/heads/master@{#333208}

Powered by Google App Engine
This is Rietveld 408576698