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

Unified Diff: chrome/renderer/searchbox/searchbox_extension.cc

Issue 15517007: Change InstantAutocompleteResult::Type to be AutocompleteMatchType::Type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comment. Created 7 years, 7 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox_extension.cc
diff --git a/chrome/renderer/searchbox/searchbox_extension.cc b/chrome/renderer/searchbox/searchbox_extension.cc
index 3d963e173c1754d12aeaacb8af490af2684c609f..205c85752fb1806bf9d26c21f05b842f7af02d8b 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -9,6 +9,7 @@
#include "base/stringprintf.h"
#include "base/strings/string_number_conversions.h"
#include "base/utf_string_conversions.h"
+#include "chrome/common/autocomplete_match_type.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/instant_types.h"
#include "chrome/common/url_constants.h"
@@ -143,7 +144,8 @@ v8::Handle<v8::Object> GenerateNativeSuggestion(
const InstantAutocompleteResult& result) {
v8::Handle<v8::Object> obj = v8::Object::New();
obj->Set(v8::String::New("provider"), UTF16ToV8String(result.provider));
- obj->Set(v8::String::New("type"), UTF16ToV8String(result.type));
+ obj->Set(v8::String::New("type"),
+ UTF8ToV8String(AutocompleteMatchType::ToString(result.type)));
obj->Set(v8::String::New("description"), UTF16ToV8String(result.description));
obj->Set(v8::String::New("destination_url"),
UTF16ToV8String(result.destination_url));
« no previous file with comments | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698