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

Issue 1058433007: New UMA settings fragment using Android prefs. (Closed)

Created:
5 years, 8 months ago by gayane -on leave until 09-2017
Modified:
5 years, 7 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

New UMA settings fragment using Android prefs. Previous reverted CL is here (https://codereview.chromium.org/1080723002/) and the first patch set also corresponds to it. The problem for revert was in profile_io_data.cc file because of initiating two preferences for Android. The kMetricsReportingEnabled was introduced for future consolidation of two preferences. I have removed the initialization for kMetricsReportingEnabled which shouldn't change the behavior as the metrics service is still using kCrashReportingEnabled and Android side updates both preferences. Rest of the code is not changed and corresponds to the version that was LGTM-ed before. BUG=455847 TBR=dfalcantara@chromium.org,nyquist@chromium.org Committed: https://crrev.com/70b0d50a4b2f20457af64a2bffc56a3362b4b009 Cr-Commit-Position: refs/heads/master@{#327047}

Patch Set 1 #

Patch Set 2 : Remove pref init #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -58 lines) Patch
M chrome/android/java/res/xml/privacy_preferences.xml View 1 chunk +4 lines, -0 lines 0 comments Download
A + chrome/android/java/res/xml/usage_and_crash_reports_preferences.xml View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaSessionStats.java View 3 chunks +30 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java View 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PrivacyPreferences.java View 6 chunks +26 lines, -13 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PrivacyPreferencesManager.java View 4 chunks +72 lines, -14 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/UsageAndCrashReportsPreferenceFragment.java View 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/PrivacyPreferencesManagerTest.java View 4 chunks +84 lines, -25 lines 0 comments Download
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
gayane -on leave until 09-2017
The problem for revert was in profile_io_data.cc file because of initiating two preferences for Android. ...
5 years, 8 months ago (2015-04-25 22:41:21 UTC) #3
Alexei Svitkine (slow)
LGTM Makes sense that we shouldn't be calling Init() twice with different prefs. Wonder why ...
5 years, 8 months ago (2015-04-26 13:45:30 UTC) #4
Alexei Svitkine (slow)
(By the way, I think it's OK to TBR the other owners in this case ...
5 years, 8 months ago (2015-04-26 13:46:18 UTC) #5
gayane -on leave until 09-2017
On 2015/04/26 13:45:30, Alexei Svitkine wrote: > LGTM > > Makes sense that we shouldn't ...
5 years, 8 months ago (2015-04-27 14:39: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/1058433007/40001
5 years, 8 months ago (2015-04-27 14:40:27 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 8 months ago (2015-04-27 15:06:31 UTC) #9
commit-bot: I haz the power
5 years, 8 months ago (2015-04-27 15:07:38 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/70b0d50a4b2f20457af64a2bffc56a3362b4b009
Cr-Commit-Position: refs/heads/master@{#327047}

Powered by Google App Engine
This is Rietveld 408576698