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

Unified Diff: chrome/common/extensions/manifest_handlers/app_launch_info.cc

Issue 142993002: Remove unused members from WebApplicationInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/extension_messages.h ('k') | chrome/common/web_application_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/manifest_handlers/app_launch_info.cc
diff --git a/chrome/common/extensions/manifest_handlers/app_launch_info.cc b/chrome/common/extensions/manifest_handlers/app_launch_info.cc
index a3b3ac592ec71d3c5f689684d6e9aa0838d37d78..0d1530f10a3bd85e5c10314b1f21c81547b586b0 100644
--- a/chrome/common/extensions/manifest_handlers/app_launch_info.cc
+++ b/chrome/common/extensions/manifest_handlers/app_launch_info.cc
@@ -177,7 +177,10 @@ bool AppLaunchInfo::LoadLaunchURL(Extension* extension, base::string16* error) {
}
// If there is no extent, we default the extent based on the launch URL.
- if (extension->web_extent().is_empty() && !launch_web_url_.is_empty()) {
+ // Bookmark apps are permissionless and shouldn't be restricted by overlapping
+ // extents.
benwells 2014/01/21 22:42:13 Isn't this from another change, and no longer need
calamity 2014/01/24 06:06:13 My bad, branch management. Removed.
+ if (extension->web_extent().is_empty() && !launch_web_url_.is_empty() &&
+ !extension->from_bookmark()) {
URLPattern pattern(Extension::kValidWebExtentSchemes);
if (!pattern.SetScheme("*")) {
*error = ErrorUtils::FormatErrorMessageUTF16(
« no previous file with comments | « chrome/common/extensions/extension_messages.h ('k') | chrome/common/web_application_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698