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

Unified Diff: chrome/browser/autocomplete/search_provider.cc

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/search_provider.cc
===================================================================
--- chrome/browser/autocomplete/search_provider.cc (revision 105162)
+++ chrome/browser/autocomplete/search_provider.cc (working copy)
@@ -686,7 +686,8 @@
if (!prevent_inline_autocomplete && classifier && (i->term != input_text)) {
AutocompleteMatch match;
classifier->Classify(i->term, string16(), false, false, &match, NULL);
- prevent_inline_autocomplete = match.transition == PageTransition::TYPED;
+ prevent_inline_autocomplete =
+ match.transition == content::PAGE_TRANSITION_TYPED;
}
int relevance = CalculateRelevanceForHistory(i->time, is_keyword,
@@ -887,8 +888,8 @@
profile_, provider, query_string, accepted_suggestion, input_text));
// Search results don't look like URLs.
- match.transition =
- is_keyword ? PageTransition::KEYWORD : PageTransition::GENERATED;
+ match.transition = is_keyword ?
+ content::PAGE_TRANSITION_KEYWORD : content::PAGE_TRANSITION_GENERATED;
// Try to add |match| to |map|. If a match for |query_string| is already in
// |map|, replace it if |match| is more relevant.
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | chrome/browser/automation/automation_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698