Index: chrome/renderer/web_apps.cc |
diff --git a/chrome/renderer/web_apps.cc b/chrome/renderer/web_apps.cc |
index 2c9801ed0798836fd14fba78101677b249841393..526b6b684cb98d5e400f0c71ecf4a159b2056220 100644 |
--- a/chrome/renderer/web_apps.cc |
+++ b/chrome/renderer/web_apps.cc |
@@ -118,16 +118,15 @@ bool ParseIconSizes(const base::string16& text, |
return (*is_any || !sizes->empty()); |
} |
-bool ParseWebAppFromWebDocument(WebFrame* frame, |
- WebApplicationInfo* app_info, |
- base::string16* error) { |
+void ParseWebAppFromWebDocument(WebFrame* frame, |
+ WebApplicationInfo* app_info) { |
WebDocument document = frame->document(); |
if (document.isNull()) |
- return true; |
+ return; |
WebElement head = document.head(); |
if (head.isNull()) |
- return true; |
+ return; |
GURL document_url = document.url(); |
WebNodeList children = head.childNodes(); |
@@ -167,11 +166,17 @@ bool ParseWebAppFromWebDocument(WebFrame* frame, |
document_url.Resolve(url) : GURL(url); |
if (!app_info->app_url.is_valid()) |
app_info->app_url = GURL(); |
+ } else if (name == "mobile-web-app-capable" && |
+ LowerCaseEqualsASCII(content, "yes")) { |
+ app_info->mobile_capable = WebApplicationInfo::MobileCapable::Yes; |
+ } else if (name == "apple-mobile-web-app-capable" && |
+ LowerCaseEqualsASCII(content, "yes") && |
+ app_info->mobile_capable == |
+ WebApplicationInfo::MobileCapable::Unspecified) { |
+ app_info->mobile_capable = WebApplicationInfo::MobileCapable::AppleOnly; |
} |
} |
} |
- |
- return true; |
} |
} // namespace web_apps |