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

Unified Diff: chrome/browser/ui/search/instant_loader.cc

Issue 13037003: permissionrequest API for guest Download. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PostTask and tests. Created 7 years, 9 months 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: chrome/browser/ui/search/instant_loader.cc
diff --git a/chrome/browser/ui/search/instant_loader.cc b/chrome/browser/ui/search/instant_loader.cc
index 2137598b98c2f6d95c95ec723eebae6b7c02bbf4..2f628941c34d29792a900c7bf31bb7bd6b8db491 100644
--- a/chrome/browser/ui/search/instant_loader.cc
+++ b/chrome/browser/ui/search/instant_loader.cc
@@ -195,11 +195,12 @@ void InstantLoader::WebContentsFocused(content::WebContents* /* contents */) {
delegate_->OnFocus();
}
-bool InstantLoader::CanDownload(content::RenderViewHost* /* render_view_host */,
+void InstantLoader::CanDownload(content::RenderViewHost* /* render_view_host */,
int /* request_id */,
- const std::string& /* request_method */) {
+ const std::string& /* request_method */,
+ const base::Callback<void(bool)>& callback) {
// Downloads are disabled.
- return false;
+ callback.Run(false);
}
void InstantLoader::HandleMouseDown() {

Powered by Google App Engine
This is Rietveld 408576698