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

Issue 7298005: Expose privacy-relevant preferences via Chrome's extension API. (Closed)

Created:
9 years, 5 months ago by Mike West
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, Paweł Hajdan Jr., jochen (gone - plz use gerrit), Pam (message me for reviews), markusheintz_
Visibility:
Public.

Description

Expose privacy-relevant preferences in Chrome's extension APIs. Adds a `privacy` permission to hold toggles for features that a) send information to external services (google or otherwise), b) send information to first-party websites, and c) effect Chrome's handling of the network in general. (Metrics are still a TODO). * privacy * network * networkPredictionEnabled (ChromeSetting) * services * alternateErrorPagesEnabled (ChromeSetting) * autofillEnabled (ChromeSetting) * instantEnabled (ChromeSetting) * safeBrowsingEnabled (ChromeSetting) * searchSuggestEnabled (ChromeSetting) * translateEnabled (ChromeSetting) * websites * blockThirdPartyCookies (ChromeSetting) * hyperlinkAuditingEnabled (ChromeSetting) * referrersEnabled (ChromeSetting) BUG=88030, 55059, 54853 TEST=browser_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98396

Patch Set 1 : First pass. #

Patch Set 2 : Alphabetizing. #

Patch Set 3 : Strawman #2 for discussion. #

Total comments: 13

Patch Set 4 : Moving tests around. #

Patch Set 5 : Renaming to chrome.privacy.*. #

Total comments: 10

Patch Set 6 : First round of feedback. #

Total comments: 1

Patch Set 7 : Rebasing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1908 lines, -776 lines) Patch
M chrome/browser/extensions/extension_content_settings_apitest.cc View 1 2 3 4 2 chunks +0 lines, -99 lines 0 comments Download
M chrome/browser/extensions/extension_preference_api.cc View 1 2 3 4 5 1 chunk +40 lines, -7 lines 0 comments Download
A chrome/browser/extensions/extension_preference_apitest.cc View 1 2 3 1 chunk +135 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 2 chunks +81 lines, -21 lines 0 comments Download
M chrome/common/extensions/docs/experimental.html View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/docs/experimental.contentSettings.html View 1 2 3 4 5 6 2 chunks +0 lines, -279 lines 0 comments Download
A chrome/common/extensions/docs/experimental.privacy.html View 1 2 3 4 5 6 1 chunk +1485 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.h View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/resources/renderer_extension_bindings.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
D chrome/test/data/extensions/api_test/content_settings/clear/manifest.json View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
D chrome/test/data/extensions/api_test/content_settings/clear/test.html View 1 2 3 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/test/data/extensions/api_test/content_settings/onchange/manifest.json View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
D chrome/test/data/extensions/api_test/content_settings/onchange/test.html View 1 2 3 1 chunk +0 lines, -95 lines 0 comments Download
D chrome/test/data/extensions/api_test/content_settings/persistent_incognito/manifest.json View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
D chrome/test/data/extensions/api_test/content_settings/persistent_incognito/test.html View 1 2 3 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/test/data/extensions/api_test/content_settings/session_only_incognito/manifest.json View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
D chrome/test/data/extensions/api_test/content_settings/session_only_incognito/test.html View 1 2 3 1 chunk +0 lines, -82 lines 0 comments Download
M chrome/test/data/extensions/api_test/content_settings/standard/test.html View 1 2 3 2 chunks +14 lines, -30 lines 0 comments Download
A chrome/test/data/extensions/api_test/preference/clear/manifest.json View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/preference/clear/test.html View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
A chrome/test/data/extensions/api_test/preference/onchange/manifest.json View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/preference/onchange/test.html View 1 2 3 4 4 chunks +14 lines, -14 lines 0 comments Download
A chrome/test/data/extensions/api_test/preference/persistent_incognito/manifest.json View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/preference/persistent_incognito/test.html View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
A chrome/test/data/extensions/api_test/preference/session_only_incognito/manifest.json View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/preference/session_only_incognito/test.html View 1 2 3 4 5 chunks +11 lines, -11 lines 0 comments Download
A chrome/test/data/extensions/api_test/preference/standard/manifest.json View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/preference/standard/test.html View 1 2 3 4 1 chunk +69 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Mike West
bauerb: I won't commit this until we've worked out what to do about the UMA ...
9 years, 5 months ago (2011-07-01 13:39:15 UTC) #1
Mike West
This is a second strawman I put together in the hopes of kickstarting the conversation ...
9 years, 5 months ago (2011-07-26 15:56:39 UTC) #2
Bernhard Bauer
http://codereview.chromium.org/7298005/diff/6001/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/7298005/diff/6001/chrome/common/extensions/api/extension_api.json#newcode6353 chrome/common/extensions/api/extension_api.json:6353: "thirdPartyCookiesAllowed": { Could we keep thirdPartyCookiesAllowed in contentSettings? It ...
9 years, 5 months ago (2011-07-27 11:41:33 UTC) #3
Mike West
http://codereview.chromium.org/7298005/diff/6001/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/7298005/diff/6001/chrome/common/extensions/api/extension_api.json#newcode6353 chrome/common/extensions/api/extension_api.json:6353: "thirdPartyCookiesAllowed": { On 2011/07/27 11:41:34, Bernhard Bauer wrote: > ...
9 years, 5 months ago (2011-07-27 11:48:01 UTC) #4
battre
http://codereview.chromium.org/7298005/diff/6001/chrome/browser/extensions/extension_preference_apitest.cc File chrome/browser/extensions/extension_preference_apitest.cc (right): http://codereview.chromium.org/7298005/diff/6001/chrome/browser/extensions/extension_preference_apitest.cc#newcode28 chrome/browser/extensions/extension_preference_apitest.cc:28: pref_service->SetBoolean(prefs::kSearchSuggestEnabled, false); these defaults not match the extensio_api.json http://codereview.chromium.org/7298005/diff/6001/chrome/common/extensions/api/extension_api.json ...
9 years, 5 months ago (2011-07-27 12:24:20 UTC) #5
Mike West
Added descriptions, moved tests around so that they match the current structure. Anticipate moving them ...
9 years, 5 months ago (2011-07-27 18:04:14 UTC) #6
Mike West
Hi Erik! I've taken your last suggestion (`chrome.privacy.*`) and implemented it here for discussion. Bernhard ...
9 years, 4 months ago (2011-08-23 12:39:06 UTC) #7
Mihai Parparita -not on Chrome
Ben is going be looking at this from the extensions side.
9 years, 4 months ago (2011-08-23 22:24:55 UTC) #8
Ben Olmstead
+kathyw for the documentation changes http://codereview.chromium.org/7298005/diff/13001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7298005/diff/13001/chrome/app/generated_resources.grd#newcode3768 chrome/app/generated_resources.grd:3768: TODO: Settings for features ...
9 years, 4 months ago (2011-08-24 19:51:46 UTC) #9
kathyw
LGTM It'd be nice to see this staged somewhere, but the doc comments seem fine ...
9 years, 4 months ago (2011-08-24 20:10:18 UTC) #10
Mike West
Thanks for the feedback, I've dropped the permission. Docs somewhat staged at http://www.corp.google.com/~mkwst/docs/experimental.privacy.html (no style, ...
9 years, 4 months ago (2011-08-25 08:18:25 UTC) #11
kathyw
> Docs somewhat staged at > http://www.corp.google.com/~mkwst/docs/experimental.privacy.html (no style, > but > I can't figure ...
9 years, 4 months ago (2011-08-25 16:14:47 UTC) #12
kathyw
LGTM (though I noticed one more unformatted "true") http://codereview.chromium.org/7298005/diff/21001/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/7298005/diff/21001/chrome/common/extensions/api/extension_api.json#newcode7824 chrome/common/extensions/api/extension_api.json:7824: "description": ...
9 years, 4 months ago (2011-08-25 16:19:03 UTC) #13
Ben Olmstead
LGTM
9 years, 4 months ago (2011-08-25 20:37:57 UTC) #14
commit-bot: I haz the power
Can't process patch for file chrome/test/data/extensions/api_test/preference/session_only_incognito/test.html. A +
9 years, 4 months ago (2011-08-25 21:57:10 UTC) #15
Mike West
9 years, 4 months ago (2011-08-25 22:34:36 UTC) #16
On 2011/08/25 21:57:10, I haz the power (commit-bot) wrote:
> Can't process patch for file
>
chrome/test/data/extensions/api_test/preference/session_only_incognito/test.html.
> A +

Filed http://crbug.com/94330 for the commit bot weirdness; I'll try to land this
manually in a moment.

Powered by Google App Engine
This is Rietveld 408576698