|
Remove //chrome dependency from ExtensionPrefs
ExtensionPrefs::Observer has been extended with additional
methods to accomodate the needs of Chrome's contentSettings API
implementation.
The ContentSettingsStore instance which was previously hosted
by ExtensionPrefs is now hosted by an independent (BCKS)
ContentSettingsService.
ExtensionsBrowserClient gets a new method to allow a client to
inject ExtensionPrefs observers between construction and
initialization. Chrome's implementation ensures that
a ContentSettingsStore exists and adds it as an ExtensionPrefs
observer.
Somewhat unfortunately this means that ExtensionPrefs construction
and initialization has been partially split to allow observers to
be added prior to initialization.
BUG= 357749, 162530
R=jamescook@chromium.org, yoz@chromium.org
TBR=bauerb@chromium.org for c/b/content_settings, finnur@chromium.org for c/b/ui/webui/extensions
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261207
Total comments: 18
Total comments: 13
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+360 lines, -110 lines) |
Patch |
 |
M |
apps/shell/browser/shell_extensions_browser_client.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
apps/shell/browser/shell_extensions_browser_client.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/content_settings/host_content_settings_map.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/content_settings/content_settings_api.cc
|
View
|
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/extensions/api/content_settings/content_settings_service.h
|
View
|
1
2
3
4
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/extensions/api/content_settings/content_settings_service.cc
|
View
|
1
2
3
4
|
1 chunk |
+73 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/preference/preference_api.h
|
View
|
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/preference/preference_api.cc
|
View
|
|
6 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/preference/preference_api_prefs_unittest.cc
|
View
|
|
5 chunks |
+22 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/browser_context_keyed_service_factories.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/chrome_extensions_browser_client.h
|
View
|
1
2
3
4
5
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/chrome_extensions_browser_client.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/test_extension_prefs.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/test_extension_system.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/extensions/extension_settings_handler.h
|
View
|
1
2
3
4
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_extensions.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_prefs.h
|
View
|
1
2
3
4
|
8 chunks |
+16 lines, -23 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_prefs.cc
|
View
|
1
2
3
4
5
6
|
14 chunks |
+74 lines, -62 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_prefs_factory.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
A |
extensions/browser/extension_prefs_observer.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/extensions_browser_client.h
|
View
|
1
2
3
4
5
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/test_extensions_browser_client.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/test_extensions_browser_client.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/extensions.gyp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 22 (0 generated)
|