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

Issue 2679933005: Make all member variables in DownloadNotificationService final (Closed)

Created:
3 years, 10 months ago by qinmin
Modified:
3 years, 10 months ago
Reviewers:
shaktisahu, gone
CC:
chromium-reviews, asanka, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make all member variables in DownloadNotificationService final Some of the member variables are not final in DNS. This allows another class to modify those variables without DNS knowing it. As a result, such modifications is not written into the SharedPreferences. To address this, other classes should make a new DownloadSharedPreferenceEntry and call AddOrReplace function to inform DNS about the modification. BUG=690080 Review-Url: https://codereview.chromium.org/2679933005 Cr-Commit-Position: refs/heads/master@{#449513} Committed: https://chromium.googlesource.com/chromium/src/+/5bd7014090760813fb68a78a03d4ff90803cdffc

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java View 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadSharedPreferenceEntry.java View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
qinmin
PTAL
3 years, 10 months ago (2017-02-08 19:44:22 UTC) #2
gone
lgtm
3 years, 10 months ago (2017-02-09 23:24:43 UTC) #3
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/2679933005/1
3 years, 10 months ago (2017-02-09 23:36:15 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/116221)
3 years, 10 months ago (2017-02-10 00:50:09 UTC) #7
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/2679933005/1
3 years, 10 months ago (2017-02-10 01:34:09 UTC) #9
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 02:09:32 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5bd7014090760813fb68a78a03d4...

Powered by Google App Engine
This is Rietveld 408576698