diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-17 13:57:45 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-19 13:44:40 +0000 |
commit | 6ec7b8da05d21a3878bd21c691b41e675d74bb1c (patch) | |
tree | b87f250bc19413750b9bb9cdbf2da20ef5014820 /chromium/components/autofill/ios/browser/js_suggestion_manager.mm | |
parent | ec02ee4181c49b61fce1c8fb99292dbb8139cc90 (diff) | |
download | qtwebengine-chromium-6ec7b8da05d21a3878bd21c691b41e675d74bb1c.tar.gz |
BASELINE: Update Chromium to 60.0.3112.70
Change-Id: I9911c2280a014d4632f254857876a395d4baed2d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/components/autofill/ios/browser/js_suggestion_manager.mm')
-rw-r--r-- | chromium/components/autofill/ios/browser/js_suggestion_manager.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chromium/components/autofill/ios/browser/js_suggestion_manager.mm b/chromium/components/autofill/ios/browser/js_suggestion_manager.mm index 1d415ce1a49..80f5c11395e 100644 --- a/chromium/components/autofill/ios/browser/js_suggestion_manager.mm +++ b/chromium/components/autofill/ios/browser/js_suggestion_manager.mm @@ -9,6 +9,10 @@ #include "base/logging.h" #include "base/strings/sys_string_conversions.h" +#if !defined(__has_feature) || !__has_feature(objc_arc) +#error "This file requires ARC support." +#endif + namespace { // Santizies |str| and wraps it in quotes so it can be injected safely in // JavaScript. @@ -76,8 +80,6 @@ NSString* JSONEscape(NSString* str) { // 2) There is a race when the page is changing due to which // JSSuggestionManager has not yet injected __gCrWeb.suggestion object // Handle this case gracefully. - // TODO(shreyasv): Figure out / narrow down further why this occurs. - // crbug.com/432217. // If a page has overridden Array.toString, the string returned may not // contain a ",", hence this is a defensive measure to early return. NSArray* components = [result componentsSeparatedByString:@","]; |