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

Unified Diff: chrome/browser/ui/webui/options/content_settings_handler.cc

Issue 14241002: Move the parsing of app.launch related keys out of Extension class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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
Index: chrome/browser/ui/webui/options/content_settings_handler.cc
diff --git a/chrome/browser/ui/webui/options/content_settings_handler.cc b/chrome/browser/ui/webui/options/content_settings_handler.cc
index 549856b7957aaa15b4732667f7c4559e08931060..05b39082d2babdd887df36bbf0ca1c3bec5da4a8 100644
--- a/chrome/browser/ui/webui/options/content_settings_handler.cc
+++ b/chrome/browser/ui/webui/options/content_settings_handler.cc
@@ -29,6 +29,7 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/content_settings.h"
#include "chrome/common/content_settings_pattern.h"
+#include "chrome/common/extensions/app_launcher_info.h"
#include "chrome/common/extensions/extension_set.h"
#include "chrome/common/extensions/permissions/api_permission.h"
#include "chrome/common/pref_names.h"
@@ -230,7 +231,8 @@ void AddExceptionsGrantedByHostedApps(
AddExceptionForHostedApp(url_pattern, **extension, exceptions);
}
// Retrieve the launch URL.
- std::string launch_url_string = (*extension)->launch_web_url();
+ std::string launch_url_string =
+ extensions::AppLauncherInfo::GetLaunchWebURL(*extension);
GURL launch_url(launch_url_string);
// Skip adding the launch URL if it is part of the web extent.
if (web_extent.MatchesURL(launch_url)) continue;

Powered by Google App Engine
This is Rietveld 408576698