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

Unified Diff: chrome/browser/ui/omnibox/omnibox_edit_model.cc

Issue 1098843004: Omnibox - Do Not Allow HTTP/HTTPS Equivalence if User Explicitly Entered A Scheme (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: possible fix for mac code (cannot compile mac code myself) Created 5 years, 6 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/ui/omnibox/omnibox_edit_model.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
index 5f6160ff4b06e760bff38f3b106ef0f56088c6a7..69855dc60f34a853ad47e7c109b3a9010032603e 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -19,6 +19,7 @@
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/autocomplete/autocomplete_classifier.h"
#include "chrome/browser/autocomplete/autocomplete_classifier_factory.h"
+#include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h"
#include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/bookmarks/bookmark_stats.h"
@@ -784,7 +785,8 @@ void OmniboxEditModel::OpenMatch(AutocompleteMatch match,
// entry of the match used.
ACMatches fake_single_entry_matches;
fake_single_entry_matches.push_back(match);
- AutocompleteResult fake_single_entry_result;
+ AutocompleteResult fake_single_entry_result(
+ make_scoped_ptr(new ChromeAutocompleteProviderClient(profile_)).get());
Peter Kasting 2015/06/29 05:04:59 This seems kind of scary. I think the scope of th
Mark P 2015/06/30 04:23:17 That's a good alternate design. I thought of one
fake_single_entry_result.AppendMatches(input_, fake_single_entry_matches);
OmniboxLog log(
input_text,

Powered by Google App Engine
This is Rietveld 408576698