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

Side by Side Diff: ios/web/web_state/js/crw_js_plugin_placeholder_manager.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: add missing #import Created 3 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #import "ios/web/web_state/js/crw_js_plugin_placeholder_manager.h" 5 #import "ios/web/web_state/js/crw_js_plugin_placeholder_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/sys_string_conversions.h" 8 #include "base/strings/sys_string_conversions.h"
9 #include "ios/web/public/web_client.h" 9 #import "ios/web/public/web_client.h"
10 10
11 #if !defined(__has_feature) || !__has_feature(objc_arc) 11 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support." 12 #error "This file requires ARC support."
13 #endif 13 #endif
14 14
15 @implementation CRWJSPluginPlaceholderManager 15 @implementation CRWJSPluginPlaceholderManager
16 16
17 namespace { 17 namespace {
18 18
19 // Returns a string with \ and ' escaped, and wrapped in '. 19 // Returns a string with \ and ' escaped, and wrapped in '.
(...skipping 22 matching lines...) Expand all
42 DCHECK(web::GetWebClient()); 42 DCHECK(web::GetWebClient());
43 NSString* pluginNotSupportedText = base::SysUTF16ToNSString( 43 NSString* pluginNotSupportedText = base::SysUTF16ToNSString(
44 web::GetWebClient()->GetPluginNotSupportedText()); 44 web::GetWebClient()->GetPluginNotSupportedText());
45 NSString* placeholderCall = [NSString stringWithFormat: 45 NSString* placeholderCall = [NSString stringWithFormat:
46 @"__gCrWeb.plugin.addPluginPlaceholders(%@);", 46 @"__gCrWeb.plugin.addPluginPlaceholders(%@);",
47 EscapedQuotedString(pluginNotSupportedText)]; 47 EscapedQuotedString(pluginNotSupportedText)];
48 return [baseContent stringByAppendingString:placeholderCall]; 48 return [baseContent stringByAppendingString:placeholderCall];
49 } 49 }
50 50
51 @end 51 @end
OLDNEW
« no previous file with comments | « ios/web/web_state/js/crw_js_injection_manager_unittest.mm ('k') | ios/web/web_state/js/page_script_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698