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

Side by Side Diff: content/browser/webui/web_ui_message_handler.cc

Issue 15600006: Cleanup: Remove unneeded gurl.h includes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: remove file Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/ssl/ssl_host_state.h ('k') | content/child/webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium 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 "content/public/browser/web_ui_message_handler.h" 5 #include "content/public/browser/web_ui_message_handler.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "googleurl/src/gurl.h"
12 11
13 namespace content { 12 namespace content {
14 13
15 bool WebUIMessageHandler::ExtractIntegerValue(const ListValue* value, 14 bool WebUIMessageHandler::ExtractIntegerValue(const ListValue* value,
16 int* out_int) { 15 int* out_int) {
17 std::string string_value; 16 std::string string_value;
18 if (value->GetString(0, &string_value)) 17 if (value->GetString(0, &string_value))
19 return base::StringToInt(string_value, out_int); 18 return base::StringToInt(string_value, out_int);
20 double double_value; 19 double double_value;
21 if (value->GetDouble(0, &double_value)) { 20 if (value->GetDouble(0, &double_value)) {
(...skipping 17 matching lines...) Expand all
39 38
40 string16 WebUIMessageHandler::ExtractStringValue(const ListValue* value) { 39 string16 WebUIMessageHandler::ExtractStringValue(const ListValue* value) {
41 string16 string16_value; 40 string16 string16_value;
42 if (value->GetString(0, &string16_value)) 41 if (value->GetString(0, &string16_value))
43 return string16_value; 42 return string16_value;
44 NOTREACHED(); 43 NOTREACHED();
45 return string16(); 44 return string16();
46 } 45 }
47 46
48 } // namespace content 47 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_host_state.h ('k') | content/child/webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698