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

Issue 800433002: Search for history items that was imported from IE is not working. (Closed)

Created:
6 years ago by Alexey Seren
Modified:
5 years, 11 months ago
Reviewers:
*gab, Ilya Sherman
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Search for history items that was imported from IE is not working. The problem is that top level history items were recognized as cache history items and were added with hidden attribute on. This bug was caused by unclear Microsoft documentation: - here http://msdn.microsoft.com/en-us/library/ie/ms774962(v=vs.85).aspx document states that STATURLFLAG_ISTOPLEVEL is <<Flag on the dwFlags parameter of the STATURL structure indicating that the item is a top-level item.>> - here http://msdn.microsoft.com/en-us/library/ie/ms774942(v=vs.85).aspx document states that dwFlags is <<DWORD that can be either STATURL_QUERYFLAG_ISCACHED or STATURL_QUERYFLAG_TOPLEVEL.>> R=gab@chromium.org BUG=441654 TEST= A) IEImporterBrowserTest.IEImporter regression test fails without corresponding product changes. B) Import history from IE and confirm that imported items can be searched for. Committed: https://crrev.com/a32f1fb46916344f3975c3b1eddef6e34a0cd9da Cr-Commit-Position: refs/heads/master@{#310023}

Patch Set 1 #

Patch Set 2 : Refactored testing code. #

Total comments: 25

Patch Set 3 : Fixed some issues found by Gab@ #

Total comments: 2

Patch Set 4 : Added/expanded comments for IE history API. #

Total comments: 8

Patch Set 5 : Removed redundant flag from SetFilter call. #

Total comments: 6

Patch Set 6 : Fixed some issues/comments found by Gab@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -17 lines) Patch
M chrome/browser/importer/ie_importer_browsertest_win.cc View 1 2 3 4 5 5 chunks +29 lines, -9 lines 0 comments Download
M chrome/utility/importer/ie_importer_win.cc View 1 2 3 4 5 2 chunks +17 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (4 generated)
Alexey Seren
6 years ago (2014-12-11 12:01:39 UTC) #1
Alexey Seren
Search for history items that was imported from IE is not working. The problem is ...
6 years ago (2014-12-11 13:10:20 UTC) #4
gab
Thanks, some comments/suggestions below. please also file a bug on crbug.com and link to it ...
6 years ago (2014-12-11 16:29:49 UTC) #5
Alexey Seren
https://codereview.chromium.org/800433002/diff/20001/chrome/browser/importer/ie_importer_browsertest_win.cc File chrome/browser/importer/ie_importer_browsertest_win.cc (right): https://codereview.chromium.org/800433002/diff/20001/chrome/browser/importer/ie_importer_browsertest_win.cc#newcode501 chrome/browser/importer/ie_importer_browsertest_win.cc:501: ADDURL_ADDTOHISTORYANDCACHE); Here is documentation: http://msdn.microsoft.com/ru-ru/aa767730 On 2014/12/11 16:29:49, gab ...
6 years ago (2014-12-12 10:07:08 UTC) #6
Alexey Seren
https://codereview.chromium.org/800433002/diff/20001/chrome/utility/importer/ie_importer_win.cc File chrome/utility/importer/ie_importer_win.cc (right): https://codereview.chromium.org/800433002/diff/20001/chrome/utility/importer/ie_importer_win.cc#newcode520 chrome/utility/importer/ie_importer_win.cc:520: row.hidden = true; I'm sorry, I've fogotten to mention ...
6 years ago (2014-12-12 10:38:41 UTC) #7
gab
Replies below. Launched a few try jobs to catch errors early. Cheers, Gab https://codereview.chromium.org/800433002/diff/20001/chrome/browser/importer/ie_importer_browsertest_win.cc File ...
6 years ago (2014-12-12 14:58:31 UTC) #8
Alexey Seren
Basing on documentation SetFilter() can be used to control how STATURL is filled. And it ...
6 years ago (2014-12-15 14:00:23 UTC) #9
gab
SG, thanks for your replies, will await a new patch set with code comment updates ...
6 years ago (2014-12-15 15:50:02 UTC) #10
Alexey Seren
Hello Gab. Thank you for reviews and comments. Please see code patchset with comments expanded. ...
6 years ago (2014-12-17 11:45:45 UTC) #12
gab
lvg, last couple nits below. https://codereview.chromium.org/800433002/diff/60001/chrome/browser/importer/ie_importer_browsertest_win.cc File chrome/browser/importer/ie_importer_browsertest_win.cc (right): https://codereview.chromium.org/800433002/diff/60001/chrome/browser/importer/ie_importer_browsertest_win.cc#newcode282 chrome/browser/importer/ie_importer_browsertest_win.cc:282: bool history_item_found_ = false; ...
6 years ago (2014-12-17 18:55:31 UTC) #13
Alexey Seren
Hello Gab, Please see my answers below. Thanks, aseren https://codereview.chromium.org/800433002/diff/60001/chrome/browser/importer/ie_importer_browsertest_win.cc File chrome/browser/importer/ie_importer_browsertest_win.cc (right): https://codereview.chromium.org/800433002/diff/60001/chrome/browser/importer/ie_importer_browsertest_win.cc#newcode282 chrome/browser/importer/ie_importer_browsertest_win.cc:282: ...
6 years ago (2014-12-18 12:08:15 UTC) #14
gab
https://codereview.chromium.org/800433002/diff/60001/chrome/utility/importer/ie_importer_win.cc File chrome/utility/importer/ie_importer_win.cc (right): https://codereview.chromium.org/800433002/diff/60001/chrome/utility/importer/ie_importer_win.cc#newcode496 chrome/utility/importer/ie_importer_win.cc:496: STATURL_QUERYFLAG_ISCACHED); On 2014/12/18 12:08:15, aseren wrote: > On 2014/12/17 ...
6 years ago (2014-12-18 15:48:02 UTC) #15
Alexey Seren
Thank you for your comments/reviews. Regards. aseren https://codereview.chromium.org/800433002/diff/60001/chrome/utility/importer/ie_importer_win.cc File chrome/utility/importer/ie_importer_win.cc (right): https://codereview.chromium.org/800433002/diff/60001/chrome/utility/importer/ie_importer_win.cc#newcode496 chrome/utility/importer/ie_importer_win.cc:496: STATURL_QUERYFLAG_ISCACHED); On ...
6 years ago (2014-12-22 13:01:40 UTC) #16
gab
Looking great, one last set of tweaks I think and we're good to go :-)! ...
6 years ago (2014-12-23 22:00:58 UTC) #17
Alexey Seren
Hello gab! Please see the last Patch Set. Hope it will be fine. https://codereview.chromium.org/800433002/diff/80001/chrome/browser/importer/ie_importer_browsertest_win.cc File ...
6 years ago (2014-12-24 07:23:19 UTC) #18
gab
lgtm, thanks!
5 years, 11 months ago (2014-12-31 14:11:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/800433002/100001
5 years, 11 months ago (2015-01-06 00:29:27 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 11 months ago (2015-01-06 01:14:43 UTC) #22
commit-bot: I haz the power
5 years, 11 months ago (2015-01-06 01:15:31 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a32f1fb46916344f3975c3b1eddef6e34a0cd9da
Cr-Commit-Position: refs/heads/master@{#310023}

Powered by Google App Engine
This is Rietveld 408576698