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

Unified Diff: content/browser/speech/google_one_shot_remote_engine.cc

Issue 10834004: Correct const accessors in base/values.(h|cc) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reverting webdriver:Command::parameters_ to const Created 8 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/speech/google_one_shot_remote_engine.cc
diff --git a/content/browser/speech/google_one_shot_remote_engine.cc b/content/browser/speech/google_one_shot_remote_engine.cc
index d8fad4625380d73cd85eee6ce4cffd09c40ad9f6..d56986b7282819e64bf27fe8de3d79292fcb500b 100644
--- a/content/browser/speech/google_one_shot_remote_engine.cc
+++ b/content/browser/speech/google_one_shot_remote_engine.cc
@@ -62,7 +62,7 @@ bool ParseServerResponse(const std::string& response_body,
return false;
}
const DictionaryValue* response_object =
- static_cast<DictionaryValue*>(response_value.get());
+ static_cast<const DictionaryValue*>(response_value.get());
// Get the status.
int status;
@@ -90,7 +90,7 @@ bool ParseServerResponse(const std::string& response_body,
}
// Get the hypotheses.
- Value* hypotheses_value = NULL;
+ const Value* hypotheses_value = NULL;
if (!response_object->Get(kHypothesesString, &hypotheses_value)) {
VLOG(1) << "ParseServerResponse: Missing hypotheses attribute.";
return false;
@@ -103,7 +103,8 @@ bool ParseServerResponse(const std::string& response_body,
return false;
}
- const ListValue* hypotheses_list = static_cast<ListValue*>(hypotheses_value);
+ const ListValue* hypotheses_list =
+ static_cast<const ListValue*>(hypotheses_value);
// For now we support only single shot recognition, so we are giving only a
// final result, consisting of one fragment (with one or more hypotheses).
« no previous file with comments | « content/browser/geolocation/network_location_request.cc ('k') | content/renderer/v8_value_converter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698