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

Side by Side Diff: ios/web/public/webui/web_ui_ios_message_handler.cc

Issue 2116673002: [ios] Moved WebUI provider code to ios/web. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ios/public/provider/web/web_ui_ios_message_handler.h" 5 #include "ios/web/public/webui/web_ui_ios_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 11
12 namespace web { 12 namespace web {
13 13
14 bool WebUIIOSMessageHandler::ExtractIntegerValue(const base::ListValue* value, 14 bool WebUIIOSMessageHandler::ExtractIntegerValue(const base::ListValue* value,
15 int* out_int) { 15 int* out_int) {
(...skipping 23 matching lines...) Expand all
39 base::string16 WebUIIOSMessageHandler::ExtractStringValue( 39 base::string16 WebUIIOSMessageHandler::ExtractStringValue(
40 const base::ListValue* value) { 40 const base::ListValue* value) {
41 base::string16 string16_value; 41 base::string16 string16_value;
42 if (value->GetString(0, &string16_value)) 42 if (value->GetString(0, &string16_value))
43 return string16_value; 43 return string16_value;
44 NOTREACHED(); 44 NOTREACHED();
45 return base::string16(); 45 return base::string16();
46 } 46 }
47 47
48 } // namespace web 48 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/webui/web_ui_ios_message_handler.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698