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

Side by Side Diff: ios/web/web_view_creation_util.mm

Issue 2239773002: Annotates functions returning retained objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removes functions that are not in headers AND not in ios code. Created 4 years, 4 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/web/public/web_view_creation_util.h" 5 #include "ios/web/public/web_view_creation_util.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h" 8 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h"
9 #import "ios/web/web_state/web_view_internal_creation_util.h" 9 #import "ios/web/web_state/web_view_internal_creation_util.h"
10 10
11 namespace web { 11 namespace web {
12 12
13 WKWebView* CreateWKWebView(CGRect frame, BrowserState* browser_state) { 13 WKWebView* CreateWKWebView(CGRect frame,
14 BrowserState* browser_state) NS_RETURNS_RETAINED {
14 DCHECK(browser_state); 15 DCHECK(browser_state);
15 16
16 WKWebViewConfigurationProvider& config_provider = 17 WKWebViewConfigurationProvider& config_provider =
17 WKWebViewConfigurationProvider::FromBrowserState(browser_state); 18 WKWebViewConfigurationProvider::FromBrowserState(browser_state);
18 return CreateWKWebView(frame, config_provider.GetWebViewConfiguration(), 19 return CreateWKWebView(frame, config_provider.GetWebViewConfiguration(),
19 browser_state); 20 browser_state);
20 } 21 }
21 22
22 } // namespace web 23 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698