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

Issue 879763002: Remove dependencies of InMemoryURLIndex on Profile (Closed)

Created:
5 years, 11 months ago by sdefresne
Modified:
5 years, 10 months ago
Reviewers:
droger
CC:
browser-components-watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@773103004
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dependencies of InMemoryURLIndex on Profile Pass to InMemoryURLIndex a pointer to the owning HistoryService and remove the reference to Profile that is no longer necessary. Fix the unit tests to no longer pass the Profile, and to call the Shutdown method before destroying the object so that it properly remove itself from the HistoryService observer list. BUG=370850 Committed: https://crrev.com/1ec74aa117bb1abac0e1042075ca48b9b8e42cc5 Cr-Commit-Position: refs/heads/master@{#313485}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment #

Patch Set 3 : Address comment #

Patch Set 4 : Rebase #

Patch Set 5 : Fix InMemoryURLIndexCacheTest.CacheFilePath failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -82 lines) Patch
M chrome/browser/history/history_service.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/in_memory_url_index.h View 9 chunks +15 lines, -24 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.cc View 1 2 7 chunks +15 lines, -38 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 1 2 3 4 8 chunks +46 lines, -19 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
sdefresne
Please take a look. Note that I explicitly removed the ScopedObserver<> because the code uses ...
5 years, 11 months ago (2015-01-26 23:02:23 UTC) #2
droger
https://codereview.chromium.org/879763002/diff/1/chrome/browser/history/in_memory_url_index.cc File chrome/browser/history/in_memory_url_index.cc (right): https://codereview.chromium.org/879763002/diff/1/chrome/browser/history/in_memory_url_index.cc#newcode114 chrome/browser/history/in_memory_url_index.cc:114: history_service_->RemoveObserver(this); What happens if ShutDown is never called, is ...
5 years, 11 months ago (2015-01-27 09:32:32 UTC) #3
sdefresne
https://codereview.chromium.org/879763002/diff/1/chrome/browser/history/in_memory_url_index.cc File chrome/browser/history/in_memory_url_index.cc (right): https://codereview.chromium.org/879763002/diff/1/chrome/browser/history/in_memory_url_index.cc#newcode114 chrome/browser/history/in_memory_url_index.cc:114: history_service_->RemoveObserver(this); On 2015/01/27 at 09:32:32, droger wrote: > What ...
5 years, 11 months ago (2015-01-27 10:13:57 UTC) #4
droger
lgtm
5 years, 11 months ago (2015-01-27 10:15:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/879763002/50001
5 years, 10 months ago (2015-01-28 09:44:43 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/49422)
5 years, 10 months ago (2015-01-28 10:25:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/879763002/70001
5 years, 10 months ago (2015-01-28 10:55:03 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:70001)
5 years, 10 months ago (2015-01-28 11:59:49 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 12:01:08 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1ec74aa117bb1abac0e1042075ca48b9b8e42cc5
Cr-Commit-Position: refs/heads/master@{#313485}

Powered by Google App Engine
This is Rietveld 408576698