| Index: chrome/browser/devtools/devtools_embedder_message_dispatcher.cc
|
| diff --git a/chrome/browser/devtools/devtools_embedder_message_dispatcher.cc b/chrome/browser/devtools/devtools_embedder_message_dispatcher.cc
|
| index d15f47a9ea823a758032ab068e491edad4683947..0c99c3a131e23dfef39194d42f7426b8eb5949ed 100644
|
| --- a/chrome/browser/devtools/devtools_embedder_message_dispatcher.cc
|
| +++ b/chrome/browser/devtools/devtools_embedder_message_dispatcher.cc
|
| @@ -11,21 +11,21 @@ namespace {
|
|
|
| using DispatchCallback = DevToolsEmbedderMessageDispatcher::DispatchCallback;
|
|
|
| -bool GetValue(const base::Value* value, std::string* result) {
|
| - return value->GetAsString(result);
|
| +bool GetValue(const base::Value& value, std::string* result) {
|
| + return value.GetAsString(result);
|
| }
|
|
|
| -bool GetValue(const base::Value* value, int* result) {
|
| - return value->GetAsInteger(result);
|
| +bool GetValue(const base::Value& value, int* result) {
|
| + return value.GetAsInteger(result);
|
| }
|
|
|
| -bool GetValue(const base::Value* value, bool* result) {
|
| - return value->GetAsBoolean(result);
|
| +bool GetValue(const base::Value& value, bool* result) {
|
| + return value.GetAsBoolean(result);
|
| }
|
|
|
| -bool GetValue(const base::Value* value, gfx::Rect* rect) {
|
| +bool GetValue(const base::Value& value, gfx::Rect* rect) {
|
| const base::DictionaryValue* dict;
|
| - if (!value->GetAsDictionary(&dict))
|
| + if (!value.GetAsDictionary(&dict))
|
| return false;
|
| int x = 0;
|
| int y = 0;
|
| @@ -67,7 +67,8 @@ template <typename T, typename... Ts>
|
| struct ParamTuple<T, Ts...> {
|
| bool Parse(const base::ListValue& list,
|
| const base::ListValue::const_iterator& it) {
|
| - return it != list.end() && GetValue(*it, &head) && tail.Parse(list, it + 1);
|
| + return it != list.end() && GetValue(**it, &head) &&
|
| + tail.Parse(list, it + 1);
|
| }
|
|
|
| template <typename H, typename... As>
|
|
|