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

Issue 12703036: [Sync] Add interface and backend impl for typed URL syncable service (Closed)

Created:
7 years, 9 months ago by mgist1
Modified:
7 years, 6 months ago
CC:
chromium-reviews, browser-components-watch_chromium.org
Visibility:
Public.

Description

[Sync] Add interface and backend impl for typed URL syncable service The typed URL sync datatype is being transitioned to the syncable service API, and this patch introduces the new interface the typed url sync code will use to communicate with sync as well as the HistoryBackend which implements the datatype. This patch implements logic for syncing typed url changes originating from the history backend to the sync server, through the syncable service API. BUG=77819

Patch Set 1 #

Patch Set 2 : Implement syncing changes from history backend #

Patch Set 3 : Fix naming and add flag for writing to backend #

Patch Set 4 : Add unit tests #

Patch Set 5 : Rebase and fix declaration conflict #

Patch Set 6 : #

Total comments: 11

Patch Set 7 : Fix style and move logic into BroadcastNotifications #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : #

Total comments: 3

Patch Set 10 : Refactor backend change handling and style cleanup #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+1333 lines, -1 line) Patch
M chrome/browser/history/expire_history_backend.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/history/expire_history_backend.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/history/expire_history_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 9 8 chunks +29 lines, -1 line 4 comments Download
M chrome/browser/history/history_service.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/history/typed_url_syncable_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +164 lines, -0 lines 0 comments Download
A chrome/browser/history/typed_url_syncable_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +444 lines, -0 lines 2 comments Download
A chrome/browser/history/typed_url_syncable_service_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +657 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
mgist1
PTAL. This is the first patch for implementing typed urls with the syncable service api, ...
7 years, 8 months ago (2013-03-29 08:11:02 UTC) #1
mgist1
Added some unit testing for the current typed url processing of changes from backend. PTAL.
7 years, 8 months ago (2013-04-06 01:40:11 UTC) #2
Andrew T Wilson (Slow)
A few nits/questions, but overall it looks good. I like the new tests! https://codereview.chromium.org/12703036/diff/37007/chrome/browser/history/history_backend.cc File ...
7 years, 8 months ago (2013-04-09 12:48:30 UTC) #3
mgist1
On 2013/04/09 12:48:30, Andrew T Wilson wrote: > A few nits/questions, but overall it looks ...
7 years, 8 months ago (2013-04-10 01:28:38 UTC) #4
Andrew T Wilson (Slow)
On 2013/04/10 01:28:38, mgist1 wrote: > My intent was to have this function only called ...
7 years, 8 months ago (2013-04-10 08:33:50 UTC) #5
Andrew T Wilson (Slow)
LGTM, but strongly consider finding a way to not keep an in-memory cache of all ...
7 years, 8 months ago (2013-04-10 08:43:22 UTC) #6
mgist1
On 2013/04/10 08:43:22, Andrew T Wilson wrote: > LGTM, but strongly consider finding a way ...
7 years, 8 months ago (2013-04-15 23:28:19 UTC) #7
mgist1
Ping brettw. PTAL
7 years, 8 months ago (2013-04-20 00:17:47 UTC) #8
brettw
I didn't look at the actual syncable service yet, will follow-up https://codereview.chromium.org/12703036/diff/57001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): ...
7 years, 8 months ago (2013-04-20 05:14:18 UTC) #9
mgist1
https://codereview.chromium.org/12703036/diff/57001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/12703036/diff/57001/chrome/browser/history/history_backend.cc#newcode2875 chrome/browser/history/history_backend.cc:2875: case chrome::NOTIFICATION_HISTORY_URLS_DELETED: { On 2013/04/20 05:14:18, brettw wrote: > ...
7 years, 8 months ago (2013-04-22 20:47:05 UTC) #10
brettw
I think this should be removed from BroadcastNotifications, yeah. And I wasn't excited about adding ...
7 years, 8 months ago (2013-04-22 23:39:28 UTC) #11
Andrew T Wilson (Slow)
I defer to brett about the proper way to notify TypedUrlService. My comment https://codereview.chromium.org/12703036/diff/37007/chrome/browser/history/history_backend.cc#newcode2889 basically ...
7 years, 8 months ago (2013-04-23 07:56:16 UTC) #12
mgist1
On 2013/04/23 07:56:16, Andrew T Wilson wrote: > I defer to brett about the proper ...
7 years, 8 months ago (2013-04-23 23:20:38 UTC) #13
brettw
LGTM on the integration. I didn't check the details of the new code, which looks ...
7 years, 7 months ago (2013-04-30 22:15:33 UTC) #14
Nicolas Zea
7 years, 7 months ago (2013-05-06 19:22:42 UTC) #15
Landing this for Michelle (whose internship has ended) via
https://codereview.chromium.org/12703036/.

https://codereview.chromium.org/12703036/diff/71001/chrome/browser/history/hi...
File chrome/browser/history/history_backend.cc (right):

https://codereview.chromium.org/12703036/diff/71001/chrome/browser/history/hi...
chrome/browser/history/history_backend.cc:891: if
(typed_url_syncable_service_.get()) {
On 2013/04/30 22:15:34, brettw wrote:
> No {} for single-line conditionals (match surrounding code).
> 
> Same below.

Done.

https://codereview.chromium.org/12703036/diff/71001/chrome/browser/history/hi...
chrome/browser/history/history_backend.cc:2891:
typed_url_syncable_service_->OnUrlsDeleted(all_history,
On 2013/04/30 22:15:34, brettw wrote:
> Doesn't this fit on one line?

Done.

https://codereview.chromium.org/12703036/diff/71001/chrome/browser/history/ty...
File chrome/browser/history/typed_url_syncable_service.cc (right):

https://codereview.chromium.org/12703036/diff/71001/chrome/browser/history/ty...
chrome/browser/history/typed_url_syncable_service.cc:37: }
On 2013/04/30 22:15:34, brettw wrote:
> Nit: add "  // namespace" to the end here.

Done.

Powered by Google App Engine
This is Rietveld 408576698