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

Side by Side Diff: ios/web/public/test/native_controller_test_util.mm

Issue 2277103003: Add GetCurrentNativeController to webstate. (Closed)
Patch Set: Created 4 years, 3 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import "ios/web/public/test/native_controller_test_util.h"
6
7 #import "ios/web/web_state/ui/crw_web_controller.h"
8 #import "ios/web/web_state/web_state_impl.h"
9
10 namespace web {
11 namespace test {
12
13 id GetCurrentNativeController(WebState* web_state) {
14 web::WebStateImpl* web_state_impl =
15 static_cast<web::WebStateImpl*>(web_state);
16 return [web_state_impl->GetWebController() nativeController];
17 }
18
19 } // namespace test
20 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698