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

Unified Diff: content/public/browser/web_contents_delegate.cc

Issue 11416013: Move RequestPpapiBrokerPermission from WebContentsObserver to WebContentsDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 1 month 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: content/public/browser/web_contents_delegate.cc
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
index f3b03d5836aa4dc344e8aab1cf44ae860a543a24..e056376c5c6b7c70b0922fa5545ec501dbc69570 100644
--- a/content/public/browser/web_contents_delegate.cc
+++ b/content/public/browser/web_contents_delegate.cc
@@ -143,6 +143,14 @@ void WebContentsDelegate::WebIntentDispatch(
delete intents_dispatcher;
}
+void WebContentsDelegate::RequestPpapiBrokerPermission(
+ WebContents* web_contents,
+ const GURL& url,
+ const FilePath& plugin_path,
+ const base::Callback<void(bool)>& callback) {
+ callback.Run(false);
jam 2012/11/16 17:46:40 nit: don't add this function body, just leave it e
Bernhard Bauer 2012/11/19 08:55:17 Done. I use a return value of false here and true
+}
+
WebContentsDelegate::~WebContentsDelegate() {
while (!attached_contents_.empty()) {
WebContents* web_contents = *attached_contents_.begin();

Powered by Google App Engine
This is Rietveld 408576698