Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(595)

Issue 6758031: Implement a simple Extension App Omnibox provider. (Closed)

Created:
9 years, 8 months ago by Finnur
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Implement a simple Extension App Omnibox provider. BUG=52444 TEST=Install an App from the gallery, then type a substring from its name (or it's launch url) and see it appear as a suggestion in the Omnibox. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80605

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 45

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 12

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 1

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -7 lines) Patch
M chrome/browser/autocomplete/autocomplete.h View 1 2 3 4 5 6 7 8 9 6 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
A chrome/browser/autocomplete/extension_app_provider.h View 1 2 3 4 5 6 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/browser/autocomplete/extension_app_provider.cc View 1 2 3 4 5 6 7 8 9 1 chunk +165 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

Messages

Total messages: 21 (0 generated)
Finnur
This is a first cut at an Omnibox provider for Extension Apps. I'd appreciate any ...
9 years, 8 months ago (2011-03-31 15:58:30 UTC) #1
Finnur
This is a first cut at an Omnibox provider for Extension Apps. I'd appreciate any ...
9 years, 8 months ago (2011-03-31 15:58:30 UTC) #2
Finnur
(Mike, this is an FYI for you) On 2011/03/31 15:58:30, Finnur wrote: > This is ...
9 years, 8 months ago (2011-03-31 15:58:57 UTC) #3
mrossetti
Driveby comments! Oh, wait! When did I become a reviewer? ;^) http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/autocomplete.h File chrome/browser/autocomplete/autocomplete.h (right): ...
9 years, 8 months ago (2011-03-31 16:44:17 UTC) #4
Peter Kasting
http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc (right): http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/autocomplete.cc#newcode800 chrome/browser/autocomplete/autocomplete.cc:800: providers_.push_back(new ExtensionAppProvider(this, profile)); Nit: This ordering is totally random. ...
9 years, 8 months ago (2011-03-31 21:33:59 UTC) #5
Finnur
http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/autocomplete.h File chrome/browser/autocomplete/autocomplete.h (right): http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/autocomplete.h#newcode46 chrome/browser/autocomplete/autocomplete.h:46: // Extension App (exact match) | 1200 ? Will ...
9 years, 8 months ago (2011-03-31 22:25:20 UTC) #6
Peter Kasting
The values are arbitrary. It depends how you want these to rank among other results. ...
9 years, 8 months ago (2011-03-31 22:40:11 UTC) #7
Finnur
But, are there no guidelines for providers? Like, 'everything less than x is usually junk ...
9 years, 8 months ago (2011-03-31 22:44:53 UTC) #8
Peter Kasting
On 2011/03/31 22:44:53, Finnur wrote: > But, are there no guidelines for providers? Nope. It's ...
9 years, 8 months ago (2011-03-31 22:52:52 UTC) #9
Finnur
Please take another look. http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc (right): http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/autocomplete.cc#newcode800 chrome/browser/autocomplete/autocomplete.cc:800: providers_.push_back(new ExtensionAppProvider(this, profile)); On 2011/03/31 ...
9 years, 8 months ago (2011-04-01 15:49:36 UTC) #10
mrossetti
LGTM
9 years, 8 months ago (2011-04-01 16:27:37 UTC) #11
Peter Kasting
http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/extension_app_provider.cc File chrome/browser/autocomplete/extension_app_provider.cc (right): http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/extension_app_provider.cc#newcode134 chrome/browser/autocomplete/extension_app_provider.cc:134: (*app)->launch_web_url())); On 2011/04/01 15:49:36, Finnur wrote: > That is ...
9 years, 8 months ago (2011-04-01 16:32:10 UTC) #12
Finnur
http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/extension_app_provider.cc File chrome/browser/autocomplete/extension_app_provider.cc (right): http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/extension_app_provider.cc#newcode134 chrome/browser/autocomplete/extension_app_provider.cc:134: (*app)->launch_web_url())); Um... Sure. I can do that in a ...
9 years, 8 months ago (2011-04-01 18:10:40 UTC) #13
Finnur
http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/extension_app_provider.cc File chrome/browser/autocomplete/extension_app_provider.cc (right): http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/extension_app_provider.cc#newcode151 chrome/browser/autocomplete/extension_app_provider.cc:151: return 1200; Yes? No? We are nearing the deadline ...
9 years, 8 months ago (2011-04-01 20:29:10 UTC) #14
Peter Kasting
On 2011/04/01 20:29:10, Finnur wrote: > http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/extension_app_provider.cc > File chrome/browser/autocomplete/extension_app_provider.cc (right): > > http://codereview.chromium.org/6758031/diff/6002/chrome/browser/autocomplete/extension_app_provider.cc#newcode151 > ...
9 years, 8 months ago (2011-04-01 21:02:43 UTC) #15
Finnur
> Um. An exact match should probably be at 1425. OK, kept that. > For ...
9 years, 8 months ago (2011-04-01 22:37:19 UTC) #16
Peter Kasting
On 2011/04/01 22:37:19, Finnur wrote: > I also reverted the ordering of providers, since just ...
9 years, 8 months ago (2011-04-01 23:38:58 UTC) #17
Finnur
As you can see from the try server on the latest patch, the failure stopped ...
9 years, 8 months ago (2011-04-02 00:21:52 UTC) #18
Peter Kasting
I'm mostly concerned about scoring. http://codereview.chromium.org/6758031/diff/15001/chrome/browser/autocomplete/autocomplete.h File chrome/browser/autocomplete/autocomplete.h (right): http://codereview.chromium.org/6758031/diff/15001/chrome/browser/autocomplete/autocomplete.h#newcode160 chrome/browser/autocomplete/autocomplete.h:160: // --: relevance score ...
9 years, 8 months ago (2011-04-04 19:35:31 UTC) #19
Finnur
Scoring algorithm changed. Please take another look. http://codereview.chromium.org/6758031/diff/15001/chrome/browser/autocomplete/autocomplete.h File chrome/browser/autocomplete/autocomplete.h (right): http://codereview.chromium.org/6758031/diff/15001/chrome/browser/autocomplete/autocomplete.h#newcode160 chrome/browser/autocomplete/autocomplete.h:160: // --: ...
9 years, 8 months ago (2011-04-05 15:50:24 UTC) #20
Peter Kasting
9 years, 8 months ago (2011-04-05 17:50:46 UTC) #21
LGTM when you feel the scores are good.

http://codereview.chromium.org/6758031/diff/15003/chrome/browser/autocomplete...
File chrome/browser/autocomplete/extension_app_provider.cc (right):

http://codereview.chromium.org/6758031/diff/15003/chrome/browser/autocomplete...
chrome/browser/autocomplete/extension_app_provider.cc:142: // reach 200 because
the 100% match is taken care of above).
This scoring algorithm looks better!

I suggest the following tweaks to help deal with your observation (which I
believe) that the scores are too low.

* Boost the base score from 400 to 575.  This will make you once again peak at
1175 (which is still what the tables in autocomplete.h, though not the legend
below, say).
* Scale the typed count bonus faster by using the following formula for
|typed_count_boost|:
  typed_count_boost = 400 * (1.0 - (2 ^ -info.typed.count()));

Ultimately, you probably do want to do inline autocompletion for
previously-typed apps, which will mean scaling all the way up to at least 1425,
but for now maybe these tweaks will help some.

Powered by Google App Engine
This is Rietveld 408576698