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

Issue 180213008: Add ExtensionsApiClient interface, use it in the storage API SettingsFrontend (Closed)

Created:
6 years, 9 months ago by James Cook
Modified:
6 years, 9 months ago
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Add ExtensionsApiClient interface, use it in the storage API SettingsFrontend app_shell needs the chrome.storage.local extension API so the core storage implementation is moving to //extensions/browser/api. However, the "managed storage" API implementation needs to remain in Chrome. * Introduce ExtensionsApiClient in extensions/browser/api * Introduce ChromeExtensionsApiClient in chrome/browser/extensions/api * Delegate out the storage ManagedValueStoreCache creation to Chrome * Move settings_namespace.h/cc to e/b/api/storage so we can use an enum in the client interface definition Most APIs will probably need to make only one or two client interface calls, so we're starting with a single ExtensionsApiClient interface. It we find individual APIs tend to need a lot of methods we can split it into one client interface per API, but that seems like overkill right now. BUG=348058 TEST=unit_tests *Settings* and browser_tests ExtensionSettings* R=rdevlin.cronin@chromium.org, rockot@chromium.org, yoz@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255069

Patch Set 1 #

Total comments: 9

Patch Set 2 : track instance inside ExtensionsApiClient #

Patch Set 3 : rebase (delegate_storage_api) #

Patch Set 4 : fix android (delegate_storage_api) #

Total comments: 4

Patch Set 5 : review comments (delegate_storage_api) #

Patch Set 6 : rebase (delegate_storage_api) #

Patch Set 7 : fix windows (delegate_storage_api) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -110 lines) Patch
M apps/shell/browser/shell_extensions_browser_client.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M apps/shell/browser/shell_extensions_browser_client.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/extensions/api/chrome_extensions_api_client.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/chrome_extensions_api_client.cc View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/storage/policy_value_store.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/settings_apitest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/settings_backend.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_frontend.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/settings_frontend.cc View 1 2 3 4 2 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_frontend_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/extensions/api/storage/settings_namespace.h View 1 chunk +0 lines, -34 lines 0 comments Download
D chrome/browser/extensions/api/storage/settings_namespace.cc View 1 chunk +0 lines, -42 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/settings_sync_processor.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/settings_test_util.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/storage_api.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/syncable_settings_storage.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 2 chunks +2 lines, -2 lines 0 comments Download
A extensions/browser/api/extensions_api_client.h View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
A extensions/browser/api/extensions_api_client.cc View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A + extensions/browser/api/storage/settings_namespace.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/browser/api/storage/settings_namespace.cc View 1 2 3 4 2 chunks +10 lines, -6 lines 0 comments Download
M extensions/extensions.gyp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
James Cook
Devlin, PTAL at chrome/browser/extensions/api/storage, in particular at settings_frontend.cc for use of the client interface. The ...
6 years, 9 months ago (2014-03-01 00:24:29 UTC) #1
Ken Rockot(use gerrit already)
On 2014/03/01 00:24:29, James Cook wrote: > Devlin, PTAL at chrome/browser/extensions/api/storage, in particular at > ...
6 years, 9 months ago (2014-03-01 02:16:35 UTC) #2
Devlin
storage stuff lgtm, a few questions on the rest (but, of course, I'm happy to ...
6 years, 9 months ago (2014-03-03 17:07:59 UTC) #3
James Cook
yoz, PTAL for OWNERS and your opinion on: A) Creation of the ExtensionsApiClient interface, and ...
6 years, 9 months ago (2014-03-03 19:53:08 UTC) #4
Devlin
(still lgtm) https://codereview.chromium.org/180213008/diff/1/chrome/browser/extensions/chrome_extensions_browser_client.h File chrome/browser/extensions/chrome_extensions_browser_client.h (right): https://codereview.chromium.org/180213008/diff/1/chrome/browser/extensions/chrome_extensions_browser_client.h#newcode82 chrome/browser/extensions/chrome_extensions_browser_client.h:82: scoped_ptr<ChromeExtensionsApiClient> api_client_; On 2014/03/03 19:53:09, James Cook ...
6 years, 9 months ago (2014-03-03 20:25:26 UTC) #5
Yoyo Zhou
LGTM I think this is ok. I think traditionally there would be something like a ...
6 years, 9 months ago (2014-03-04 19:55:03 UTC) #6
James Cook
Changed spelling to APIClient. I swear there used to be a rule that it was ...
6 years, 9 months ago (2014-03-04 20:55:57 UTC) #7
Ken Rockot(use gerrit already)
On 2014/03/04 20:55:57, James Cook wrote: > Changed spelling to APIClient. I swear there used ...
6 years, 9 months ago (2014-03-04 21:02:40 UTC) #8
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-04 21:17:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/180213008/200001
6 years, 9 months ago (2014-03-04 21:22:38 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 22:13:48 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
6 years, 9 months ago (2014-03-04 22:13:48 UTC) #12
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-04 22:34:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/180213008/200001
6 years, 9 months ago (2014-03-04 22:35:12 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 00:08:28 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 9 months ago (2014-03-05 00:08:29 UTC) #16
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-05 00:11:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/180213008/200001
6 years, 9 months ago (2014-03-05 00:13:39 UTC) #18
James Cook
The CQ bit was unchecked by jamescook@chromium.org
6 years, 9 months ago (2014-03-05 00:14:17 UTC) #19
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-05 00:34:39 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/180213008/240001
6 years, 9 months ago (2014-03-05 01:23:19 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 06:41:13 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
6 years, 9 months ago (2014-03-05 06:41:14 UTC) #23
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 9 months ago (2014-03-05 07:14:41 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/180213008/240001
6 years, 9 months ago (2014-03-05 07:16:18 UTC) #25
James Cook
Committed patchset #7 manually as r255069 (presubmit successful).
6 years, 9 months ago (2014-03-05 17:25:27 UTC) #26
Nico
6 years, 9 months ago (2014-03-05 19:37:05 UTC) #27
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/181233011/ by thakis@chromium.org.

The reason for reverting is: Likely broke
GCMProfileServiceSingleProfileTest.Unregister Android..

Powered by Google App Engine
This is Rietveld 408576698