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

Issue 4234004: Fix some UI issues with omnibox extensions in incognito. (Closed)

Created:
10 years, 1 month ago by Matt Perry
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, brettw-cc_chromium.org, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Fix some UI issues with omnibox extensions in incognito. Also moved a shared method from ExtensionEventRouter to ExtensionsService. BUG=58210 TEST=Install the extension in chrome/common/extensions/docs/examples/extensions/chrome_search. You should not see the UI artifacts described in the bug. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64964

Patch Set 1 #

Total comments: 6

Patch Set 2 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -21 lines) Patch
M chrome/browser/autocomplete/autocomplete_popup_model.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.cc View 1 3 chunks +25 lines, -16 lines 0 comments Download
M chrome/browser/extensions/extension_event_router.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Matt Perry
Peter: please review */autocomplete/* Antony: the other stuff http://codereview.chromium.org/4234004/diff/1/3 File chrome/browser/autocomplete/keyword_provider.cc (left): http://codereview.chromium.org/4234004/diff/1/3#oldcode225 chrome/browser/autocomplete/keyword_provider.cc:225: matches_.push_back(CreateAutocompleteMatch(model, ...
10 years, 1 month ago (2010-11-03 00:02:59 UTC) #1
asargent_no_longer_on_chrome
extensions parts lgtm
10 years, 1 month ago (2010-11-03 00:12:42 UTC) #2
Peter Kasting
LGTM http://codereview.chromium.org/4234004/diff/1/2 File chrome/browser/autocomplete/autocomplete_popup_model.cc (right): http://codereview.chromium.org/4234004/diff/1/2#newcode224 chrome/browser/autocomplete/autocomplete_popup_model.cc:224: // Don't provide a hint if this is ...
10 years, 1 month ago (2010-11-03 17:27:15 UTC) #3
Matt Perry
10 years, 1 month ago (2010-11-03 19:34:14 UTC) #4
http://codereview.chromium.org/4234004/diff/1/2
File chrome/browser/autocomplete/autocomplete_popup_model.cc (right):

http://codereview.chromium.org/4234004/diff/1/2#newcode224
chrome/browser/autocomplete/autocomplete_popup_model.cc:224: // Don't provide a
hint if this is an extension keyword not enabled for this
On 2010/11/03 17:27:15, Peter Kasting wrote:
> Nit: "...not enabled in incognito mode" is probably better.

Done.

http://codereview.chromium.org/4234004/diff/1/3
File chrome/browser/autocomplete/keyword_provider.cc (right):

http://codereview.chromium.org/4234004/diff/1/3#newcode172
chrome/browser/autocomplete/keyword_provider.cc:172: // Prune any extension
keywords for disabled or unprivileged extensions.
On 2010/11/03 17:27:15, Peter Kasting wrote:
> Nit: What does "disabled or unprivileged" mean?  It looks as if this is just
> "When in incognito mode, prune any keywords for extensions that are not
enabled
> for incognito mode".  And if that's true, perhaps the
profile->IsOffTheRecord()
> check should be hoisted to cover this whole block?

it's (disabled) || (extensions not enabled for incognito mode if we're in
incognito mode). I had a hard time thinking of a concise way to say that.

Powered by Google App Engine
This is Rietveld 408576698