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

Unified Diff: chrome/browser/autocomplete/extension_app_provider.h

Issue 8364001: Strip special characters in extension omnibox suggestions. (Closed) Base URL: svn://svn.chromium.org/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/extension_app_provider.h
===================================================================
--- chrome/browser/autocomplete/extension_app_provider.h (revision 107565)
+++ chrome/browser/autocomplete/extension_app_provider.h (working copy)
@@ -20,6 +20,7 @@
#include <vector>
#include "base/compiler_specific.h"
+#include "base/gtest_prod_util.h"
#include "chrome/browser/autocomplete/autocomplete.h"
#include "chrome/browser/autocomplete/autocomplete_match.h"
#include "content/public/browser/notification_observer.h"
@@ -39,12 +40,21 @@
bool minimal_changes) OVERRIDE;
private:
+ FRIEND_TEST_ALL_PREFIXES(ExtensionAppProviderTest, CreateMatchSanitize);
+
// An ExtensionApp is a pair of Extension Name and the Launch URL.
typedef std::pair<string16, string16> ExtensionApp;
typedef std::vector<ExtensionApp> ExtensionApps;
virtual ~ExtensionAppProvider();
+ // Construct a match for the specified parameters.
+ AutocompleteMatch CreateAutocompleteMatch(const AutocompleteInput& input,
+ const string16& name,
+ const string16& url,
+ size_t name_match_index,
+ size_t url_match_index);
+
// Fetch the current app list and cache it locally.
void RefreshAppList();
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_match.cc ('k') | chrome/browser/autocomplete/extension_app_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698