|
Allow extensions to specify that they are not allowed in incognito mode.
Add "not_allowed" as a valid value to the "incognito" field in the
manifest. Track incognito behavior using an enum instead of a boolean
to distinguish between "split", "spanning", and "not_allowed". Add
CanBeIncognitoEnabled method to utils which checks the manifest entry
in addition to checking if extension is platform app or component.
BUG= 455756
Committed: https://crrev.com/e548e74412d0a18f8829ce60201eb953a700b09b
Cr-Commit-Position: refs/heads/master@{#349806}
Total comments: 6
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+103 lines, -34 lines) |
Patch |
|
M |
chrome/browser/extensions/api/developer_private/extension_info_generator.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/messaging/message_service.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/extension_util.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/installed_loader.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
extensions/browser/extension_util.h
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
extensions/browser/extension_util.cc
|
View
|
1
2
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
extensions/common/extension.h
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
extensions/common/extension.cc
|
View
|
1
2
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
|
M |
extensions/common/manifest_constants.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
extensions/common/manifest_constants.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
extensions/common/manifest_handlers/incognito_info.h
|
View
|
1
|
1 chunk |
+9 lines, -2 lines |
0 comments
|
Download
|
|
M |
extensions/common/manifest_handlers/incognito_info.cc
|
View
|
1
2
|
3 chunks |
+24 lines, -17 lines |
0 comments
|
Download
|
|
A |
extensions/common/manifest_handlers/incognito_manifest_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
|
M |
extensions/extensions_tests.gypi
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A + |
extensions/test/data/manifest_tests/incognito_not_allowed.json
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
extensions/test/data/manifest_tests/incognito_spanning.json
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
extensions/test/data/manifest_tests/incognito_split.json
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
extensions/test/data/manifest_tests/minimal.json
|
View
|
1
2
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
Total messages: 12 (2 generated)
|