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

Issue 789383002: Add the basic infrastructure for the Behavior feature type: BehaviorFeature and (Closed)

Created:
6 years ago by not at google - send to devlin
Modified:
6 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@flag-features
Project:
chromium
Visibility:
Public.

Description

Add the basic infrastructure for the Behavior feature type: BehaviorFeature and _behavior_features.json. Arbitrarily use it to implement the allow-in-incognito whitelist. BUG=440194 R=rockot@chromium.org Committed: https://crrev.com/64210328fe91376da6cf6a21ac16db72efa6118a Cr-Commit-Position: refs/heads/master@{#308311}

Patch Set 1 #

Patch Set 2 : no find copies! #

Total comments: 1

Patch Set 3 : behavior #

Total comments: 2

Patch Set 4 : cant spell #

Patch Set 5 : add support for external component extensions #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -23 lines) Patch
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_util.cc View 1 2 3 4 3 chunks +9 lines, -19 lines 0 comments Download
M chrome/common/extensions/chrome_extensions_client.cc View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M extensions/common/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A extensions/common/api/_behavior_features.json View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A extensions/common/features/behavior_feature.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A extensions/common/features/behavior_feature.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M extensions/common/features/feature_provider.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/features/feature_provider.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M extensions/common/features/simple_feature.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/common/features/simple_feature.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M extensions/common/features/simple_feature_unittest.cc View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/extensions_resources.grd View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/common/shell_extensions_client.cc View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M extensions/test/test_extensions_client.cc View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
not at google - send to devlin
Ken, seeking initial impressions here. It compiles and I can't see why it wouldn't work, ...
6 years ago (2014-12-10 23:57:18 UTC) #2
not at google - send to devlin
Another question is whether you need separate of these for extension concerns vs chrome concerns. ...
6 years ago (2014-12-11 00:07:27 UTC) #3
Ken Rockot(use gerrit already)
Nice. I wanted exactly this eons ago when looking at all the magic whitelisting cases ...
6 years ago (2014-12-11 00:38:58 UTC) #4
Ken Rockot(use gerrit already)
On 2014/12/11 00:38:58, Ken Rockot wrote: > Nice. I wanted exactly this eons ago when ...
6 years ago (2014-12-11 00:40:02 UTC) #5
not at google - send to devlin
On 2014/12/11 00:38:58, Ken Rockot wrote: > Nice. I wanted exactly this eons ago when ...
6 years ago (2014-12-11 17:15:47 UTC) #6
not at google - send to devlin
https://codereview.chromium.org/789383002/diff/20001/chrome/browser/extensions/extension_util.cc File chrome/browser/extensions/extension_util.cc (right): https://codereview.chromium.org/789383002/diff/20001/chrome/browser/extensions/extension_util.cc#newcode48 chrome/browser/extensions/extension_util.cc:48: return FeatureProvider::GetSwitchFeatures() Btw, wdyt about renaming all of these ...
6 years ago (2014-12-11 17:51:00 UTC) #7
not at google - send to devlin
Ok, for realz.
6 years ago (2014-12-11 22:09:04 UTC) #8
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/789383002/diff/40001/chrome/browser/extensions/extension_util.cc File chrome/browser/extensions/extension_util.cc (right): https://codereview.chromium.org/789383002/diff/40001/chrome/browser/extensions/extension_util.cc#newcode87 chrome/browser/extensions/extension_util.cc:87: if (IsWhitelistedForIncognito(extension)) This doesn't seem equivalent to the ...
6 years ago (2014-12-11 22:32:21 UTC) #9
not at google - send to devlin
https://codereview.chromium.org/789383002/diff/40001/chrome/browser/extensions/extension_util.cc File chrome/browser/extensions/extension_util.cc (right): https://codereview.chromium.org/789383002/diff/40001/chrome/browser/extensions/extension_util.cc#newcode87 chrome/browser/extensions/extension_util.cc:87: if (IsWhitelistedForIncognito(extension)) On 2014/12/11 22:32:21, Ken Rockot wrote: > ...
6 years ago (2014-12-11 22:41:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789383002/40001
6 years ago (2014-12-11 23:11:08 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/90378) win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/7916)
6 years ago (2014-12-12 01:02:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789383002/40001
6 years ago (2014-12-12 18:01:19 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/90735) linux_chromium_asan_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/17752)
6 years ago (2014-12-12 18:50:18 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789383002/60001
6 years ago (2014-12-12 20:43:10 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/90812)
6 years ago (2014-12-12 21:29:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789383002/100001
6 years ago (2014-12-15 03:12:58 UTC) #24
not at google - send to devlin
Well, I needed to end up maintaining that external_component restriction after all.
6 years ago (2014-12-15 03:18:14 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-15 03:59:18 UTC) #26
commit-bot: I haz the power
6 years ago (2014-12-15 04:00:01 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/64210328fe91376da6cf6a21ac16db72efa6118a
Cr-Commit-Position: refs/heads/master@{#308311}

Powered by Google App Engine
This is Rietveld 408576698