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

Issue 1981913002: *DRAFT* Move MediaDeviceIDSalt from chrome/ to components/ and use it in Android WebView. (Closed)

Created:
4 years, 7 months ago by Guido Urdaneta
Modified:
4 years, 7 months ago
Reviewers:
CC:
chromium-reviews, msramek+watch_chromium.org, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, markusheintz_, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move MediaDeviceIDSalt from chrome/ to components/ and use it in Android WebView. This uses a random salt to produce hashed media device IDs. This makes device IDs harder to track. BUG=315022

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -155 lines) Patch
M android_webview/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/android_webview.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 3 chunks +4 lines, -1 line 0 comments Download
M android_webview/browser/aw_resource_context.h View 2 chunks +11 lines, -1 line 0 comments Download
M android_webview/browser/aw_resource_context.cc View 2 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 3 chunks +2 lines, -2 lines 0 comments Download
D chrome/browser/media/media_device_id_salt.h View 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/browser/media/media_device_id_salt.cc View 1 chunk +0 lines, -67 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 3 chunks +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M components/components.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A + components/media_device_id_salt.gypi View 1 chunk +8 lines, -8 lines 0 comments Download
A + components/media_device_id_salt/BUILD.gn View 1 chunk +6 lines, -5 lines 0 comments Download
A + components/media_device_id_salt/DEPS View 1 chunk +2 lines, -1 line 0 comments Download
A + components/media_device_id_salt/OWNERS View 1 chunk +1 line, -1 line 0 comments Download
A + components/media_device_id_salt/media_device_id_salt.h View 3 chunks +14 lines, -3 lines 0 comments Download
A + components/media_device_id_salt/media_device_id_salt.cc View 3 chunks +13 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
Guido Urdaneta
torne@chromium.org: Please review changes in android_webview jochen@chromium.org: Please review changes in components/ and chrome/
4 years, 7 months ago (2016-05-16 16:08:29 UTC) #2
Torne
Before I review in detail: if this is a thing that all consumers of content ...
4 years, 7 months ago (2016-05-16 16:12:50 UTC) #4
Guido Urdaneta
On 2016/05/16 16:12:50, Torne wrote: > Before I review in detail: if this is a ...
4 years, 7 months ago (2016-05-16 16:46:03 UTC) #6
Guido Urdaneta
tommi: this is approach 4, as discussed in crbug.com/315022
4 years, 7 months ago (2016-05-17 11:53:41 UTC) #8
Torne
On 2016/05/16 16:46:03, Guido Urdaneta wrote: > On 2016/05/16 16:12:50, Torne wrote: > > Before ...
4 years, 7 months ago (2016-05-17 18:09:29 UTC) #10
Guido Urdaneta
4 years, 7 months ago (2016-05-18 09:38:26 UTC) #12
On 2016/05/17 18:09:29, Torne wrote:
> On 2016/05/16 16:46:03, Guido Urdaneta wrote:
> > On 2016/05/16 16:12:50, Torne wrote:
> > > Before I review in detail: if this is a thing that all consumers of
content
> > > should be doing for user privacy, can it maybe be integrated directly into
> the
> > > media code instead somehow, so that it's applied to all content embedders
> > > without them doing anything? Or is there some reason why that's not
> possible?
> > 
> > I think the reason the default implementation in content uses a fixed salt
is
> to
> > make it stateless.
> > If we change it to have a random salt by default, content::ResourceContext
> will
> > need to keep that salt as an std::string in its state.
> > The cost would be to have this extra (empty) string in the state for the
> chrome
> > profile implementation, which has to store the salt as preferences.
> > The other embedders I think would be OK with the new default behavior.
> > Let's put his on hold while I discuss with the team here if that cost is
> > acceptable. I'll get back to you if the decision is to proceed with this CL.
> 
> OK, thanks. WebView's prefs aren't persistent anyway (we've not yet needed to
> persist any prefs and only have a prefstore to satisfy some dependencies that
> need one) - not sure if that impacts this decision.

We decided that content/public was not the right place to implement random
salts.
However, since none of the embedders that need random salts can or need to
persist the salt, we will go for a simpler approach.
Closing this in favor of https://codereview.chromium.org/1987643002/

Powered by Google App Engine
This is Rietveld 408576698