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

Issue 184043031: Split up extensions storage API implementations for sync and local storage. (Closed)

Created:
6 years, 9 months ago by James Cook
Modified:
6 years, 9 months ago
Reviewers:
Devlin, Yoyo Zhou
CC:
chromium-reviews, tim+watch_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org, haitaol+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Split up extensions storage API implementations for sync and local storage. This will allow the core storage API implementation to move to //extensions where app_shell can use it. * Split SyncOrLocalValueStoreCache into SyncValueStoreCache and LocalValueStoreCache * Move SettingsFrontend::GetBackendForSync() to settings_sync_util::GetSyncableService() BUG=348058 TEST=unit_tests *Settings* and browser_tests ExtensionSettings* TBR=zea@chromium.org for trivial change to chrome/browser/sync/profile_sync_components_factory_impl.cc Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255515

Patch Set 1 #

Patch Set 2 : split sync_or_local #

Total comments: 14

Patch Set 3 : review comments (split_sync) #

Total comments: 4

Patch Set 4 : review comments 2 (split_sync) #

Total comments: 3

Patch Set 5 : rebase (split_sync) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -488 lines) Patch
M chrome/browser/extensions/api/chrome_extensions_api_client.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
A + chrome/browser/extensions/api/storage/local_value_store_cache.h View 1 2 3 1 chunk +11 lines, -30 lines 0 comments Download
A + chrome/browser/extensions/api/storage/local_value_store_cache.cc View 1 2 3 4 chunks +39 lines, -77 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_apitest.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_frontend.h View 1 4 chunks +3 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_frontend.cc View 1 2 3 7 chunks +14 lines, -56 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_frontend_unittest.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_sync_unittest.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/settings_sync_util.h View 2 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_sync_util.cc View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.h View 1 1 chunk +0 lines, -69 lines 0 comments Download
M chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.cc View 1 1 chunk +0 lines, -142 lines 0 comments Download
A + chrome/browser/extensions/api/storage/sync_value_store_cache.h View 1 2 3 2 chunks +10 lines, -18 lines 0 comments Download
A + chrome/browser/extensions/api/storage/sync_value_store_cache.cc View 1 2 3 2 chunks +43 lines, -70 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
James Cook
Devlin, PTAL https://codereview.chromium.org/184043031/diff/20001/chrome/browser/extensions/api/storage/local_value_store_cache.h File chrome/browser/extensions/api/storage/local_value_store_cache.h (left): https://codereview.chromium.org/184043031/diff/20001/chrome/browser/extensions/api/storage/local_value_store_cache.h#oldcode60 chrome/browser/extensions/api/storage/local_value_store_cache.h:60: bool initialized_; I removed this because it ...
6 years, 9 months ago (2014-03-05 18:37:39 UTC) #1
Devlin
Hmm... I dislike how much shared code there is between the two ValueStoreCaches. But I ...
6 years, 9 months ago (2014-03-05 19:02:55 UTC) #2
James Cook
Devlin, please take another look. https://codereview.chromium.org/184043031/diff/20001/chrome/browser/extensions/api/storage/local_value_store_cache.cc File chrome/browser/extensions/api/storage/local_value_store_cache.cc (right): https://codereview.chromium.org/184043031/diff/20001/chrome/browser/extensions/api/storage/local_value_store_cache.cc#newcode67 chrome/browser/extensions/api/storage/local_value_store_cache.cc:67: ValueStore* storage = backend->GetStorage(extension->id()); ...
6 years, 9 months ago (2014-03-05 23:14:27 UTC) #3
Devlin
lgtm with nits. https://codereview.chromium.org/184043031/diff/40001/chrome/browser/extensions/api/storage/local_value_store_cache.h File chrome/browser/extensions/api/storage/local_value_store_cache.h (right): https://codereview.chromium.org/184043031/diff/40001/chrome/browser/extensions/api/storage/local_value_store_cache.h#newcode1 chrome/browser/extensions/api/storage/local_value_store_cache.h:1: // Copyright (c) 2012 The Chromium ...
6 years, 9 months ago (2014-03-05 23:30:53 UTC) #4
James Cook
yoz, can I get OWNERS for moving a little code into chrome/browser/extensions/api/chrome_extensions_api_client.cc ? https://codereview.chromium.org/184043031/diff/40001/chrome/browser/extensions/api/storage/local_value_store_cache.h File ...
6 years, 9 months ago (2014-03-05 23:45:19 UTC) #5
Yoyo Zhou
LGTM https://codereview.chromium.org/184043031/diff/80001/chrome/browser/extensions/api/storage/settings_frontend.cc File chrome/browser/extensions/api/storage/settings_frontend.cc (right): https://codereview.chromium.org/184043031/diff/80001/chrome/browser/extensions/api/storage/settings_frontend.cc#newcode96 chrome/browser/extensions/api/storage/settings_frontend.cc:96: new LocalValueStoreCache(factory, browser_context_->GetPath()); Why not do this one ...
6 years, 9 months ago (2014-03-06 00:43:22 UTC) #6
James Cook
https://codereview.chromium.org/184043031/diff/80001/chrome/browser/extensions/api/storage/settings_frontend.cc File chrome/browser/extensions/api/storage/settings_frontend.cc (right): https://codereview.chromium.org/184043031/diff/80001/chrome/browser/extensions/api/storage/settings_frontend.cc#newcode96 chrome/browser/extensions/api/storage/settings_frontend.cc:96: new LocalValueStoreCache(factory, browser_context_->GetPath()); On 2014/03/06 00:43:22, Yoyo Zhou wrote: ...
6 years, 9 months ago (2014-03-06 00:47:14 UTC) #7
Yoyo Zhou
https://codereview.chromium.org/184043031/diff/80001/chrome/browser/extensions/api/storage/settings_frontend.cc File chrome/browser/extensions/api/storage/settings_frontend.cc (right): https://codereview.chromium.org/184043031/diff/80001/chrome/browser/extensions/api/storage/settings_frontend.cc#newcode96 chrome/browser/extensions/api/storage/settings_frontend.cc:96: new LocalValueStoreCache(factory, browser_context_->GetPath()); On 2014/03/06 00:47:14, James Cook wrote: ...
6 years, 9 months ago (2014-03-06 01:22:54 UTC) #8
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-06 18:20:35 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/184043031/120001
6 years, 9 months ago (2014-03-06 18:25:17 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-06 18:30:54 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg, mac_chromium_rel
6 years, 9 months ago (2014-03-06 18:30:54 UTC) #12
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-06 18:41: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/184043031/120001
6 years, 9 months ago (2014-03-06 18:45:45 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-06 18:57:34 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-06 18:57:34 UTC) #16
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-06 19:03:33 UTC) #17
James Cook
The CQ bit was unchecked by jamescook@chromium.org
6 years, 9 months ago (2014-03-06 19:03:34 UTC) #18
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-06 19:03:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/184043031/120001
6 years, 9 months ago (2014-03-06 19:08:52 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/184043031/120001
6 years, 9 months ago (2014-03-06 20:58:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/184043031/120001
6 years, 9 months ago (2014-03-06 21:44:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/184043031/120001
6 years, 9 months ago (2014-03-06 22:20:39 UTC) #23
commit-bot: I haz the power
6 years, 9 months ago (2014-03-07 03:52:28 UTC) #24
Message was sent while issue was closed.
Change committed as 255515

Powered by Google App Engine
This is Rietveld 408576698