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

Unified Diff: chrome/browser/extensions/api/omnibox/omnibox_api.cc

Issue 22885002: c/b/extensions, json_schema_compiler: Do not use Value::Create*. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed C-style casts. Created 7 years, 4 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/extensions/api/omnibox/omnibox_api.cc
diff --git a/chrome/browser/extensions/api/omnibox/omnibox_api.cc b/chrome/browser/extensions/api/omnibox/omnibox_api.cc
index 06db5b85dfebfd7347296c8f519b7d674057d5c6..18250ad0d280c70c4d639d4a526ca9865b53ffb5 100644
--- a/chrome/browser/extensions/api/omnibox/omnibox_api.cc
+++ b/chrome/browser/extensions/api/omnibox/omnibox_api.cc
@@ -127,8 +127,8 @@ bool ExtensionOmniboxEventRouter::OnInputChanged(
return false;
scoped_ptr<base::ListValue> args(new base::ListValue());
- args->Set(0, Value::CreateStringValue(input));
- args->Set(1, Value::CreateIntegerValue(suggest_id));
+ args->Set(0, new base::StringValue(input));
+ args->Set(1, new base::FundamentalValue(suggest_id));
scoped_ptr<Event> event(new Event(events::kOnInputChanged, args.Pass()));
event->restrict_to_profile = profile;
@@ -154,13 +154,13 @@ void ExtensionOmniboxEventRouter::OnInputEntered(
active_tab_permission_granter()->GrantIfRequested(extension);
scoped_ptr<base::ListValue> args(new base::ListValue());
- args->Set(0, Value::CreateStringValue(input));
+ args->Set(0, new base::StringValue(input));
if (disposition == NEW_FOREGROUND_TAB)
- args->Set(1, Value::CreateStringValue(kForegroundTabDisposition));
+ args->Set(1, new base::StringValue(kForegroundTabDisposition));
else if (disposition == NEW_BACKGROUND_TAB)
- args->Set(1, Value::CreateStringValue(kBackgroundTabDisposition));
+ args->Set(1, new base::StringValue(kBackgroundTabDisposition));
else
- args->Set(1, Value::CreateStringValue(kCurrentTabDisposition));
+ args->Set(1, new base::StringValue(kCurrentTabDisposition));
scoped_ptr<Event> event(new Event(events::kOnInputEntered, args.Pass()));
event->restrict_to_profile = profile;

Powered by Google App Engine
This is Rietveld 408576698