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

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

Issue 440423003: Clean content_settings_pattern_parser.* from unnecessary dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/website_settings_handler.cc
diff --git a/chrome/browser/ui/webui/options/website_settings_handler.cc b/chrome/browser/ui/webui/options/website_settings_handler.cc
index ffcb8e2617001b63687d92a833fa0b6fc2d3ec23..8a3ad4f66ad830ad0aa549cdc6ef2bf1d10da5d0 100644
--- a/chrome/browser/ui/webui/options/website_settings_handler.cc
+++ b/chrome/browser/ui/webui/options/website_settings_handler.cc
@@ -7,6 +7,7 @@
#include "chrome/browser/content_settings/content_settings_utils.h"
#include "chrome/browser/content_settings/host_content_settings_map.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/chrome_content_settings_client.h"
#include "content/public/browser/web_ui.h"
#include "grit/generated_resources.h"
#include "ui/base/text/bytes_formatting.h"
@@ -136,7 +137,8 @@ void WebsiteSettingsHandler::UpdateOrigins() {
continue;
}
- std::string origin = it->primary_pattern.ToString();
+ content_settings::ChromeContentSettingsClient client;
+ std::string origin = it->primary_pattern.ToString(&client);
// Mediastream isn't set unless both mic and camera are set to the same.
if (last_setting == CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC) {

Powered by Google App Engine
This is Rietveld 408576698