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

Issue 510533002: Omnibox: Make URLs of Bookmarks Searchable - Try 2 (Closed)

Created:
6 years, 3 months ago by Mark P
Modified:
6 years, 3 months ago
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, tfarina, haitaol+watch_chromium.org, browser-components-watch_chromium.org, James Su, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Omnibox: Make URLs of Bookmarks Searchable - Try 2 This is a reland of https://codereview.chromium.org/489373005/ which was reverted because it caused failures in interactive_ui_tests on mac on OmniboxViewTest.AcceptKeywordBySpace: https://build.chromium.org/p/chromium.mac/builders/Mac%2010.6%20Tests%20(dbg)(1)/builds/52199 See [1]. It turns out these failures were because the test uses a bookmark with no title and BookmarkProvider doesn't set classifications for these correctly. (It set the title as having a classification where, without any text, it doesn't make sense to have any classification.) This change fixes this issue and adds a test in BookmarkProvider for it. I will annotate the *second* patchset I upload with the differences between the previously-reviewed changelist and this changelist. (The first patchset has debug lines; ignore it.) Otherwise, the changelist description remains the same, which I will paste below [2]. I am marking this change as TBR=sky (because he previously reviewed this change and the new parts are not under his purview.) --- [1] OmniboxViewTest.AcceptKeywordBySpace (run #1): [ RUN ] OmniboxViewTest.AcceptKeywordBySpace [12075:263:0822/122851:ERROR:location_bar_view_mac.mm(592)] Not implemented reached in virtual void LocationBarViewMac::EndOriginChipAnimations(bool) [12075:263:0822/122852:FATAL:autocomplete_match.cc(516)] Check failed: classifications.empty(). 0 libbase.dylib 0x1ca75c5f base::debug::StackTrace::StackTrace() + 63 1 libbase.dylib 0x1ca75cbb base::debug::StackTrace::StackTrace() + 43 2 libbase.dylib 0x1cb21862 logging::LogMessage::~LogMessage() + 82 3 libbase.dylib 0x1cb2058b logging::LogMessage::~LogMessage() + 43 4 interactive_ui_tests 0x11fb469d AutocompleteMatch::ValidateClassifications(std::basic_string\u003Cunsigned short, base::string16_char_traits, std::allocator\u003Cunsigned short> > const&, std::vector\u003CAutocompleteMatch::ACMatchClassification, std::allocator\u003CAutocompleteMatch::ACMatchClassification> > const&) const + 317 5 interactive_ui_tests 0x11fb453b AutocompleteMatch::Validate() const + 107 6 interactive_ui_tests 0x11fbbb51 AutocompleteResult::Validate() const + 113 7 interactive_ui_tests 0x0d6f5a3f AutocompleteController::UpdateResult(bool, bool) + 815 8 interactive_ui_tests 0x0d6f55b7 AutocompleteController::Start(AutocompleteInput const&) + 1799 ... [2] This used to be controlled by a field trial created in https://codereview.chromium.org/184663002 After evaluating this change, we've decided to launch it. This change turns the flag on by default and removes the field trial code. It also removes the index_urls_ parameters everywhere because those will always be true forevermore. I tested this interactively. Also, all the unit tests still apparently pass. And yes some of these do exercise this feature. BUG=157204, 378854 Committed: https://crrev.com/56bd38e3cfb1b7d0e08e675626d572f4707fa77f Cr-Commit-Position: refs/heads/master@{#292243}

Patch Set 1 #

Patch Set 2 : revert debug lines in chrome/browser/ui/omnibox/omnibox_view_browsertest.cc #

Total comments: 7

Patch Set 3 : Peter's minor comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -186 lines) Patch
M chrome/browser/autocomplete/bookmark_provider.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider.cc View 6 chunks +20 lines, -28 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider_unittest.cc View 1 2 7 chunks +35 lines, -34 lines 0 comments Download
M chrome/browser/bookmarks/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_model_factory.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_editor_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/bookmarks/browser/bookmark_codec_unittest.cc View 6 chunks +8 lines, -8 lines 0 comments Download
M components/bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/bookmarks/browser/bookmark_index.h View 2 chunks +1 line, -7 lines 0 comments Download
M components/bookmarks/browser/bookmark_index.cc View 5 chunks +23 lines, -34 lines 0 comments Download
M components/bookmarks/browser/bookmark_index_unittest.cc View 7 chunks +7 lines, -7 lines 0 comments Download
M components/bookmarks/browser/bookmark_model.h View 2 chunks +1 line, -7 lines 0 comments Download
M components/bookmarks/browser/bookmark_model.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M components/bookmarks/browser/bookmark_model_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M components/bookmarks/browser/bookmark_node_data_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/bookmarks/browser/bookmark_utils_unittest.cc View 11 chunks +11 lines, -11 lines 0 comments Download
M components/bookmarks/test/test_bookmark_client.h View 1 chunk +1 line, -1 line 0 comments Download
M components/bookmarks/test/test_bookmark_client.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/enhanced_bookmarks/enhanced_bookmark_utils_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/enhanced_bookmarks/metadata_accessor_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M components/omnibox/omnibox_field_trial.h View 2 chunks +0 lines, -12 lines 0 comments Download
M components/omnibox/omnibox_field_trial.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M components/policy/core/browser/managed_bookmarks_tracker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Mark P
Peter, Please take a look at the new changes to bookmark_provider.cc and bookmark_provider_unittest.cc. See changelist ...
6 years, 3 months ago (2014-08-26 21:33:35 UTC) #1
Joao da Silva
joaodasilva@chromium.org changed reviewers: + joaodasilva@chromium.org
6 years, 3 months ago (2014-08-27 09:57:41 UTC) #2
Joao da Silva
policy/ lgtm Did you mean to add pkasting@ as a reviewer?
6 years, 3 months ago (2014-08-27 09:57:41 UTC) #3
Mark P
On 2014/08/27 09:57:41, Joao da Silva wrote: > policy/ lgtm > > Did you mean ...
6 years, 3 months ago (2014-08-27 16:51:31 UTC) #4
Mark P
mpearson@chromium.org changed reviewers: + pkasting@chromium.org
6 years, 3 months ago (2014-08-27 16:51:45 UTC) #5
Mark P
Peter, Please take a look at the new changes to bookmark_provider.cc and bookmark_provider_unittest.cc. thanks, mark
6 years, 3 months ago (2014-08-27 16:52:25 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/510533002/diff/20001/chrome/browser/autocomplete/bookmark_provider_unittest.cc File chrome/browser/autocomplete/bookmark_provider_unittest.cc (right): https://codereview.chromium.org/510533002/diff/20001/chrome/browser/autocomplete/bookmark_provider_unittest.cc#newcode51 chrome/browser/autocomplete/bookmark_provider_unittest.cc:51: {"achlorhydric featherheads resuscitates mockingbirds", Nit: For consistency, put ...
6 years, 3 months ago (2014-08-27 19:36:45 UTC) #7
Mark P
https://codereview.chromium.org/510533002/diff/20001/chrome/browser/autocomplete/bookmark_provider_unittest.cc File chrome/browser/autocomplete/bookmark_provider_unittest.cc (right): https://codereview.chromium.org/510533002/diff/20001/chrome/browser/autocomplete/bookmark_provider_unittest.cc#newcode51 chrome/browser/autocomplete/bookmark_provider_unittest.cc:51: {"achlorhydric featherheads resuscitates mockingbirds", On 2014/08/27 19:36:45, Peter Kasting ...
6 years, 3 months ago (2014-08-27 21:12:16 UTC) #8
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 3 months ago (2014-08-27 21:12:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/510533002/40001
6 years, 3 months ago (2014-08-27 21:14:02 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 537a6d3e6ce0a0e7d69d1d85f933685de90bc225
6 years, 3 months ago (2014-08-27 22:14:26 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:54:45 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/56bd38e3cfb1b7d0e08e675626d572f4707fa77f
Cr-Commit-Position: refs/heads/master@{#292243}

Powered by Google App Engine
This is Rietveld 408576698