| Index: chrome/browser/chrome_content_browser_client.cc
|
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
|
| index 618b9224253be07312707a4b7d3ba425b96516b5..7499f4fd05052119f3869aa1d5506d1bca96adfc 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -122,6 +122,7 @@
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/common/child_process_host.h"
|
| #include "content/public/common/content_descriptors.h"
|
| +#include "content/public/common/show_desktop_notification_params.h"
|
| #include "content/public/common/url_utils.h"
|
| #include "extensions/browser/extension_host.h"
|
| #include "extensions/browser/extension_message_filter.h"
|
| @@ -2100,6 +2101,9 @@ void ChromeContentBrowserClient::ShowDesktopNotification(
|
| DesktopNotificationServiceFactory::GetForProfile(profile);
|
| service->ShowDesktopNotification(
|
| params, render_frame_host, delegate, cancel_callback);
|
| +
|
| + profile->GetHostContentSettingsMap()->UpdateLastUsage(
|
| + params.origin, params.origin, CONTENT_SETTINGS_TYPE_NOTIFICATIONS);
|
| #else
|
| NOTIMPLEMENTED();
|
| #endif
|
| @@ -2134,6 +2138,18 @@ void ChromeContentBrowserClient::RequestMidiSysExPermission(
|
| cancel_callback);
|
| }
|
|
|
| +void ChromeContentBrowserClient::UseContentSettingPermission(
|
| + content::WebContents* web_contents,
|
| + const GURL& primary_url,
|
| + const GURL& secondary_url,
|
| + const std::string& setting_type) {
|
| + Profile::FromBrowserContext(web_contents->GetBrowserContext())
|
| + ->GetHostContentSettingsMap()
|
| + ->UpdateLastUsage(primary_url,
|
| + secondary_url,
|
| + content_settings::GetTypeFromName(setting_type));
|
| +}
|
| +
|
| void ChromeContentBrowserClient::RequestProtectedMediaIdentifierPermission(
|
| content::WebContents* web_contents,
|
| const GURL& origin,
|
|
|