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

Issue 2901093009: [USS] Implement GetAllData and GetStorageKey. (Closed)

Created:
3 years, 7 months ago by Gang Wu
Modified:
3 years, 6 months ago
Reviewers:
brettw, pavely
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement GetAllData and GetStorageKey. Also add TypedURLSyncBridge to be an observer of HistoryBackend. Change storageKey using big endian, since user event is using big endian, and it is better to unify our number style. BUG=726158 The following 4 functions are ported from TypedUrlSyncableService. GetErrorPercentage() WriteToTypedUrlSpecifics() ClearErrorStats() FixupURLAndGetVisits() Review-Url: https://codereview.chromium.org/2901093009 Cr-Commit-Position: refs/heads/master@{#477079} Committed: https://chromium.googlesource.com/chromium/src/+/c2ae2ba24bb3d8a1a1324bde1252dd543e2bf708

Patch Set 1 : add include #

Total comments: 14

Patch Set 2 : pavely code review update #

Total comments: 18

Patch Set 3 : pavely review 2 #

Total comments: 4

Patch Set 4 : add DCHECK #

Total comments: 12

Patch Set 5 : brettw review and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+643 lines, -31 lines) Patch
M components/history/core/browser/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/history/core/browser/history_backend.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M components/history/core/browser/history_backend.cc View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M components/history/core/browser/typed_url_sync_bridge.h View 1 2 3 4 3 chunks +54 lines, -6 lines 0 comments Download
M components/history/core/browser/typed_url_sync_bridge.cc View 1 2 3 4 5 chunks +292 lines, -12 lines 0 comments Download
A components/history/core/browser/typed_url_sync_bridge_unittest.cc View 1 2 3 4 1 chunk +260 lines, -0 lines 0 comments Download
M components/history/core/browser/typed_url_sync_metadata_database.cc View 1 2 3 4 chunks +14 lines, -8 lines 0 comments Download
M components/history/core/browser/typed_url_sync_metadata_database_unittest.cc View 1 2 4 chunks +15 lines, -3 lines 0 comments Download

Messages

Total messages: 65 (53 generated)
Gang Wu
PTAL
3 years, 7 months ago (2017-05-25 17:17:33 UTC) #15
pavely
https://codereview.chromium.org/2901093009/diff/60001/components/history/core/browser/history_backend.h File components/history/core/browser/history_backend.h (right): https://codereview.chromium.org/2901093009/diff/60001/components/history/core/browser/history_backend.h#newcode581 components/history/core/browser/history_backend.h:581: friend class TypedURLSyncBridgeTest; I assume you make TypedURLSyncBridgeTest a ...
3 years, 6 months ago (2017-05-30 14:25:41 UTC) #18
Gang Wu
updated, use big endian as storage key. https://codereview.chromium.org/2901093009/diff/60001/components/history/core/browser/history_backend.h File components/history/core/browser/history_backend.h (right): https://codereview.chromium.org/2901093009/diff/60001/components/history/core/browser/history_backend.h#newcode581 components/history/core/browser/history_backend.h:581: friend class ...
3 years, 6 months ago (2017-05-31 00:17:32 UTC) #33
pavely
https://codereview.chromium.org/2901093009/diff/140001/components/history/core/browser/history_backend.h File components/history/core/browser/history_backend.h (right): https://codereview.chromium.org/2901093009/diff/140001/components/history/core/browser/history_backend.h#newcode480 components/history/core/browser/history_backend.h:480: void SetTypedURLSyncBridge(std::unique_ptr<TypedURLSyncBridge> bridge) { Could you name it SetTypedURLSyncBridgeForTest. ...
3 years, 6 months ago (2017-06-01 20:49:18 UTC) #36
Gang Wu
updated https://codereview.chromium.org/2901093009/diff/140001/components/history/core/browser/history_backend.h File components/history/core/browser/history_backend.h (right): https://codereview.chromium.org/2901093009/diff/140001/components/history/core/browser/history_backend.h#newcode480 components/history/core/browser/history_backend.h:480: void SetTypedURLSyncBridge(std::unique_ptr<TypedURLSyncBridge> bridge) { On 2017/06/01 20:49:18, pavely ...
3 years, 6 months ago (2017-06-02 00:00:24 UTC) #42
pavely
lgtm % comment. https://codereview.chromium.org/2901093009/diff/180001/components/history/core/browser/typed_url_sync_metadata_database.cc File components/history/core/browser/typed_url_sync_metadata_database.cc (right): https://codereview.chromium.org/2901093009/diff/180001/components/history/core/browser/typed_url_sync_metadata_database.cc#newcode59 components/history/core/browser/typed_url_sync_metadata_database.cc:59: base::ReadBigEndian(storage_key.data(), &storage_key_int); What I meant was ...
3 years, 6 months ago (2017-06-02 00:33:06 UTC) #43
Gang Wu
Hi Brettw@, PTAL https://codereview.chromium.org/2901093009/diff/180001/components/history/core/browser/typed_url_sync_metadata_database.cc File components/history/core/browser/typed_url_sync_metadata_database.cc (right): https://codereview.chromium.org/2901093009/diff/180001/components/history/core/browser/typed_url_sync_metadata_database.cc#newcode59 components/history/core/browser/typed_url_sync_metadata_database.cc:59: base::ReadBigEndian(storage_key.data(), &storage_key_int); On 2017/06/02 00:33:06, pavely ...
3 years, 6 months ago (2017-06-02 06:07:09 UTC) #49
brettw
https://codereview.chromium.org/2901093009/diff/200001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2901093009/diff/200001/components/history/core/browser/typed_url_sync_bridge.cc#newcode71 components/history/core/browser/typed_url_sync_bridge.cc:71: LoadMetadata(); I like to avoid database operations or other ...
3 years, 6 months ago (2017-06-05 17:31:15 UTC) #52
Gang Wu
updated https://codereview.chromium.org/2901093009/diff/200001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2901093009/diff/200001/components/history/core/browser/typed_url_sync_bridge.cc#newcode71 components/history/core/browser/typed_url_sync_bridge.cc:71: LoadMetadata(); On 2017/06/05 17:31:15, brettw wrote: > I ...
3 years, 6 months ago (2017-06-05 20:04:14 UTC) #58
brettw
lgtm
3 years, 6 months ago (2017-06-05 20:44:43 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2901093009/220001
3 years, 6 months ago (2017-06-05 20:46:29 UTC) #62
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 20:52:20 UTC) #65
Message was sent while issue was closed.
Committed patchset #5 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/c2ae2ba24bb3d8a1a1324bde1252...

Powered by Google App Engine
This is Rietveld 408576698