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

Unified Diff: content/browser/accessibility/accessibility_ui.cc

Issue 383263005: Remove more CreateIntegerValue calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/SetBoolean/SetInteger Created 6 years, 5 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: content/browser/accessibility/accessibility_ui.cc
diff --git a/content/browser/accessibility/accessibility_ui.cc b/content/browser/accessibility/accessibility_ui.cc
index 1f4df798f46b6224b0e9327559e17c65a625657c..628c54575cef32932af38cfc781de53ef480b311 100644
--- a/content/browser/accessibility/accessibility_ui.cc
+++ b/content/browser/accessibility/accessibility_ui.cc
@@ -116,9 +116,9 @@ bool HandleRequestCallback(BrowserContext* current_context,
scoped_ptr<base::DictionaryValue> data(new base::DictionaryValue());
data->Set("list", rvh_list.release());
- scoped_ptr<base::FundamentalValue> a11y_mode(base::Value::CreateIntegerValue(
- BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()));
- data->Set("global_a11y_mode", a11y_mode.release());
+ data->SetInteger(
+ "global_a11y_mode",
+ BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode());
std::string json_string;
base::JSONWriter::Write(data.get(), &json_string);

Powered by Google App Engine
This is Rietveld 408576698