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

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

Created:
3 years, 10 months ago by qinmin
Modified:
3 years, 10 months ago
Reviewers:
gone
CC:
chromium-reviews, asanka, agrieve+watch_chromium.org
Target Ref:
refs/pending/branch-heads/2987
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. TBR=dfalcantara@chromium.org BUG=690080 Review-Url: https://codereview.chromium.org/2679933005 Cr-Commit-Position: refs/heads/master@{#449513} (cherry picked from commit 5bd7014090760813fb68a78a03d4ff90803cdffc) Review-Url: https://codereview.chromium.org/2688243002 . Cr-Commit-Position: refs/branch-heads/2987@{#450} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/e5010a4817336dfc3290463c114a2691352d5466

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: 2 (1 generated)
qinmin
3 years, 10 months ago (2017-02-10 20:43:42 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
e5010a4817336dfc3290463c114a2691352d5466 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698