Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 79859b4f4f9582a68c1fbb3586e4cd1ec612c9b2..8733ae882a51f8b611f8f88f45cca87e4a94bb09 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -955,6 +955,16 @@ void Browser::RequestMediaAccessPermissionHelper( |
} |
} |
+// static |
+void Browser::RequestPpapiBrokerPermissionHelper( |
+ WebContents* web_contents, |
+ const GURL& url, |
+ const FilePath& plugin_path, |
+ const base::Callback<void(bool)>& callback) { |
+ // TODO(bauerb): Request permission. |
ddorwin
2012/08/12 22:51:16
FYI, should automatically return false in certain
Bernhard Bauer
2012/08/13 09:02:11
Do you know what these cases are? FYI, the actual
ddorwin
2012/08/13 22:27:04
As discussed offline.
|
+ callback.Run(true); |
+} |
+ |
void Browser::UpdateUIForNavigationInTab(TabContents* contents, |
content::PageTransition transition, |
bool user_initiated) { |
@@ -1683,6 +1693,15 @@ void Browser::RequestMediaAccessPermission( |
RequestMediaAccessPermissionHelper(web_contents, request, callback); |
} |
+void Browser::RequestPpapiBrokerPermission( |
+ WebContents* web_contents, |
+ const GURL& url, |
+ const FilePath& plugin_path, |
+ const base::Callback<void(bool)>& callback) { |
+ RequestPpapiBrokerPermissionHelper(web_contents, url, plugin_path, |
+ callback); |
+} |
+ |
/////////////////////////////////////////////////////////////////////////////// |
// Browser, CoreTabHelperDelegate implementation: |