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

Issue 2967443004: [Extensions Bindings] Fix getPlatform() method (Closed)

Created:
3 years, 5 months ago by Devlin
Modified:
3 years, 5 months ago
Reviewers:
lazyboy, jbroman
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions Bindings] Fix getPlatform() method bindings.js uses a method to determine the current platform, but it relies on navigator.appVersion (and also regexes). Replace this with a native alternative. This also removes the "chromeos touch" option, which was added in https://codereview.chromium.org/7104002/, but is no longer needed. BUG=738178 Review-Url: https://codereview.chromium.org/2967443004 Cr-Commit-Position: refs/heads/master@{#485364} Committed: https://chromium.googlesource.com/chromium/src/+/e194d022357de0597c1c7448852417a9559b0f0a

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -36 lines) Patch
M extensions/renderer/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/bindings/api_binding.cc View 1 2 3 chunks +2 lines, -16 lines 0 comments Download
A extensions/renderer/bindings/api_binding_util.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
A extensions/renderer/bindings/api_binding_util.cc View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M extensions/renderer/process_info_native_handler.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/process_info_native_handler.cc View 3 chunks +12 lines, -0 lines 0 comments Download
M extensions/renderer/resources/binding.js View 1 2 3 chunks +1 line, -20 lines 2 comments Download

Messages

Total messages: 25 (19 generated)
Devlin
Short one for y'all. :)
3 years, 5 months ago (2017-07-07 22:20:37 UTC) #16
lazyboy
lgtm https://codereview.chromium.org/2967443004/diff/40001/extensions/renderer/resources/binding.js File extensions/renderer/resources/binding.js (left): https://codereview.chromium.org/2967443004/diff/40001/extensions/renderer/resources/binding.js#oldcode93 extensions/renderer/resources/binding.js:93: [/CrOS Touch/, "chromeos touch"], You're also removing "chromeos ...
3 years, 5 months ago (2017-07-07 23:09:26 UTC) #17
jbroman
lgtm
3 years, 5 months ago (2017-07-10 14:53:26 UTC) #18
Devlin
https://codereview.chromium.org/2967443004/diff/40001/extensions/renderer/resources/binding.js File extensions/renderer/resources/binding.js (left): https://codereview.chromium.org/2967443004/diff/40001/extensions/renderer/resources/binding.js#oldcode93 extensions/renderer/resources/binding.js:93: [/CrOS Touch/, "chromeos touch"], On 2017/07/07 23:09:26, lazyboy wrote: ...
3 years, 5 months ago (2017-07-10 18:35:31 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/2967443004/40001
3 years, 5 months ago (2017-07-10 18:36:16 UTC) #22
commit-bot: I haz the power
3 years, 5 months ago (2017-07-10 20:35:04 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e194d022357de0597c1c74488524...

Powered by Google App Engine
This is Rietveld 408576698