| Index: chrome/browser/android/preferences/website_preference_bridge.cc
|
| diff --git a/chrome/browser/android/preferences/website_preference_bridge.cc b/chrome/browser/android/preferences/website_preference_bridge.cc
|
| index b46086668cbca15b654502966c8c0e3112684a5c..d7928e5d9b722bc6c79a1216a1de82a733665151 100644
|
| --- a/chrome/browser/android/preferences/website_preference_bridge.cc
|
| +++ b/chrome/browser/android/preferences/website_preference_bridge.cc
|
| @@ -28,6 +28,7 @@
|
| #include "chrome/browser/content_settings/tab_specific_content_settings.h"
|
| #include "chrome/browser/content_settings/web_site_settings_uma_util.h"
|
| #include "chrome/browser/notifications/desktop_notification_profile_util.h"
|
| +#include "chrome/browser/permissions/permission_uma_util.h"
|
| #include "chrome/browser/permissions/permission_util.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| @@ -155,9 +156,13 @@ void SetSettingForOrigin(JNIEnv* env,
|
| GURL origin_url(ConvertJavaStringToUTF8(env, origin));
|
| GURL embedder_url =
|
| embedder ? GURL(ConvertJavaStringToUTF8(env, embedder)) : GURL();
|
| - PermissionUtil::SetContentSettingAndRecordRevocation(
|
| - GetActiveUserProfile(is_incognito), origin_url, embedder_url,
|
| - content_type, std::string(), setting);
|
| + Profile* profile = GetActiveUserProfile(is_incognito);
|
| + PermissionUtil::ScopedRevocationReporter scoped_revocation_reporter(
|
| + profile, origin_url, embedder_url, content_type,
|
| + PermissionSourceUI::SITE_SETTINGS);
|
| + HostContentSettingsMapFactory::GetForProfile(profile)
|
| + ->SetContentSettingDefaultScope(origin_url, embedder_url, content_type,
|
| + std::string(), setting);
|
| WebSiteSettingsUmaUtil::LogPermissionChange(content_type, setting);
|
| }
|
|
|
|
|