Chromium Code Reviews| Index: chrome/browser/profiles/profile_impl.cc |
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
| index 56b8cb40085cd8c7f40414149d656808ce7c9d9b..e315bbaf68618de940bfcefdbecdb6b6bd55ca0d 100644 |
| --- a/chrome/browser/profiles/profile_impl.cc |
| +++ b/chrome/browser/profiles/profile_impl.cc |
| @@ -47,6 +47,8 @@ |
| #include "chrome/browser/net/net_pref_observer.h" |
| #include "chrome/browser/net/predictor.h" |
| #include "chrome/browser/net/proxy_service_factory.h" |
| +#include "chrome/browser/permissions/chooser_permission_manager.h" |
|
Jeffrey Yasskin
2016/01/21 00:32:30
I think you don't need this #include.
juncai
2016/01/25 18:53:32
Without this include, line:
return ChooserPermissi
Reilly Grant (use Gerrit)
2016/01/25 19:08:38
ChooserPermissionManagerFactory::GetForProfile sho
juncai
2016/01/25 21:51:59
Done.
|
| +#include "chrome/browser/permissions/chooser_permission_manager_factory.h" |
| #include "chrome/browser/permissions/permission_manager.h" |
| #include "chrome/browser/permissions/permission_manager_factory.h" |
| #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
| @@ -1027,6 +1029,10 @@ content::BackgroundSyncController* ProfileImpl::GetBackgroundSyncController() { |
| return BackgroundSyncControllerFactory::GetForProfile(this); |
| } |
| +content::ChooserPermissionManager* ProfileImpl::GetChooserPermissionManager() { |
| + return ChooserPermissionManagerFactory::GetForProfile(this); |
| +} |
| + |
| bool ProfileImpl::IsSameProfile(Profile* profile) { |
| if (profile == static_cast<Profile*>(this)) |
| return true; |