OLD | NEW |
1 // Copyright 2014 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2014 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "request.h" | 5 #include "request.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 namespace { | 9 namespace { |
10 | 10 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 return request; | 177 return request; |
178 } | 178 } |
179 | 179 |
180 int64_t request::GetInt64FromString(const pp::VarDictionary& dictionary, | 180 int64_t request::GetInt64FromString(const pp::VarDictionary& dictionary, |
181 const std::string& request_key) { | 181 const std::string& request_key) { |
182 std::stringstream ss_int64(dictionary.Get(request_key).AsString()); | 182 std::stringstream ss_int64(dictionary.Get(request_key).AsString()); |
183 int64_t int64_value; | 183 int64_t int64_value; |
184 ss_int64 >> int64_value; | 184 ss_int64 >> int64_value; |
185 return int64_value; | 185 return int64_value; |
186 } | 186 } |
OLD | NEW |