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

Issue 1141963002: Remove a bunch of DeepCopy() calls in the chrome.storage API. (Closed)

Created:
5 years, 7 months ago by not at google - send to devlin
Modified:
5 years, 7 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove a bunch of DeepCopy() calls in the chrome.storage API. DeepCopy() is expensive and we're doing a lot of it, transferring ownership is better. I also tidied up some code here and there, like C++11 niceties, removing unnecessary linked_ptrs, and better commenting. R=rdevlin.cronin@chromium.org Committed: https://crrev.com/6387496ebfee135bca59d8043a30d12eed57e420 Cr-Commit-Position: refs/heads/master@{#330597}

Patch Set 1 #

Patch Set 2 : fixes #

Total comments: 21

Patch Set 3 : fun times #

Total comments: 14

Patch Set 4 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -451 lines) Patch
M chrome/browser/extensions/api/storage/setting_sync_data.h View 1 2 3 2 chunks +25 lines, -40 lines 0 comments Download
M chrome/browser/extensions/api/storage/setting_sync_data.cc View 1 2 3 1 chunk +35 lines, -74 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_sync_unittest.cc View 1 2 28 chunks +152 lines, -193 lines 0 comments Download
M chrome/browser/extensions/api/storage/sync_storage_backend.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/sync_storage_backend.cc View 1 2 3 8 chunks +58 lines, -62 lines 0 comments Download
M chrome/browser/extensions/api/storage/syncable_settings_storage.h View 1 2 1 chunk +20 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/storage/syncable_settings_storage.cc View 1 2 6 chunks +65 lines, -71 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
not at google - send to devlin
5 years, 7 months ago (2015-05-15 20:06:26 UTC) #1
Devlin
https://codereview.chromium.org/1141963002/diff/20001/chrome/browser/extensions/api/storage/setting_sync_data.cc File chrome/browser/extensions/api/storage/setting_sync_data.cc (right): https://codereview.chromium.org/1141963002/diff/20001/chrome/browser/extensions/api/storage/setting_sync_data.cc#newcode85 chrome/browser/extensions/api/storage/setting_sync_data.cc:85: DCHECK(internal_.get()) << "value has been released"; Should these be ...
5 years, 7 months ago (2015-05-15 21:59:08 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/1141963002/diff/20001/chrome/browser/extensions/api/storage/setting_sync_data.cc File chrome/browser/extensions/api/storage/setting_sync_data.cc (right): https://codereview.chromium.org/1141963002/diff/20001/chrome/browser/extensions/api/storage/setting_sync_data.cc#newcode85 chrome/browser/extensions/api/storage/setting_sync_data.cc:85: DCHECK(internal_.get()) << "value has been released"; On 2015/05/15 21:59:07, ...
5 years, 7 months ago (2015-05-15 23:28:30 UTC) #3
Devlin
I think this lgtm, but my brain is a bit burnt. If you're in a ...
5 years, 7 months ago (2015-05-15 23:58:19 UTC) #4
Devlin
A few more nits, but still lgtm. https://codereview.chromium.org/1141963002/diff/40001/chrome/browser/extensions/api/storage/setting_sync_data.cc File chrome/browser/extensions/api/storage/setting_sync_data.cc (right): https://codereview.chromium.org/1141963002/diff/40001/chrome/browser/extensions/api/storage/setting_sync_data.cc#newcode48 chrome/browser/extensions/api/storage/setting_sync_data.cc:48: if (specifics.has_extension_setting()) ...
5 years, 7 months ago (2015-05-19 15:41:55 UTC) #5
not at google - send to devlin
https://codereview.chromium.org/1141963002/diff/20001/chrome/browser/extensions/api/storage/sync_storage_backend.cc File chrome/browser/extensions/api/storage/sync_storage_backend.cc (right): https://codereview.chromium.org/1141963002/diff/20001/chrome/browser/extensions/api/storage/sync_storage_backend.cc#newcode179 chrome/browser/extensions/api/storage/sync_storage_backend.cc:179: std::map<std::string, base::DictionaryValue*> grouped_sync_data; On 2015/05/15 23:58:18, Devlin wrote: > ...
5 years, 7 months ago (2015-05-19 19:43:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141963002/60001
5 years, 7 months ago (2015-05-19 19:44:22 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-19 20:35:47 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 20:36:45 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6387496ebfee135bca59d8043a30d12eed57e420
Cr-Commit-Position: refs/heads/master@{#330597}

Powered by Google App Engine
This is Rietveld 408576698