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

Issue 2860633003: Remove redundant static singleton for DeviceSensors (Closed)

Created:
3 years, 7 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 7 months ago
Reviewers:
Jeffrey Yasskin, ortuno
CC:
agrieve+watch_chromium.org, chromium-reviews, mlamouri+watch-sensors_chromium.org, riju_, timvolodine
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove redundant static singleton for DeviceSensors The singleton Java DeviceSensors object is owned by a singleton SensorManagerAndroid so there is no need to maintain a reference to the singleton in both Java and C++. This silences the lint warning about keeping references to the Context object in a static field because now the static field is in C++ and thus invisible to the linter. BUG=635567 Review-Url: https://codereview.chromium.org/2860633003 Cr-Commit-Position: refs/heads/master@{#468863} Committed: https://chromium.googlesource.com/chromium/src/+/268bd8b3738aa5e18df731c881893a797032b37b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -14 lines) Patch
M device/sensors/android/java/src/org/chromium/device/sensors/DeviceSensors.java View 3 chunks +2 lines, -13 lines 0 comments Download
M device/sensors/sensor_manager_android.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (8 generated)
Reilly Grant (use Gerrit)
PTAL
3 years, 7 months ago (2017-05-03 00:54:57 UTC) #2
ortuno
lgtm
3 years, 7 months ago (2017-05-03 01:15:58 UTC) #5
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/2860633003/1
3 years, 7 months ago (2017-05-03 01:18:38 UTC) #8
ortuno
I was thinking about base::Singleton's guarantees and if jni might break some of them. I ...
3 years, 7 months ago (2017-05-03 01:22:12 UTC) #9
Reilly Grant (use Gerrit)
On 2017/05/03 01:22:12, ortuno wrote: > I was thinking about base::Singleton's guarantees and if jni ...
3 years, 7 months ago (2017-05-03 01:28:28 UTC) #10
Reilly Grant (use Gerrit)
+jyasskin
3 years, 7 months ago (2017-05-03 01:28:44 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 01:53:15 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/268bd8b3738aa5e18df731c88189...

Powered by Google App Engine
This is Rietveld 408576698