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

Unified Diff: chrome/browser/download/download_request_limiter_observer.cc

Issue 10412061: Fix crashes in DownloadRequestLimiter when extension popups/bubbles initiate downloads automatically (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 7 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/download/download_request_limiter_observer.cc
diff --git a/chrome/browser/download/download_request_limiter_observer.cc b/chrome/browser/download/download_request_limiter_observer.cc
deleted file mode 100644
index c5bd6e72293cab5a16a53c13e8f6e5704a699537..0000000000000000000000000000000000000000
--- a/chrome/browser/download/download_request_limiter_observer.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/download/download_request_limiter_observer.h"
-
-#include "chrome/browser/browser_process.h"
-#include "chrome/browser/download/download_request_limiter.h"
-
-using content::WebContents;
-
-DownloadRequestLimiterObserver::DownloadRequestLimiterObserver(
- WebContents* web_contents)
- : content::WebContentsObserver(web_contents) {
-}
-
-DownloadRequestLimiterObserver::~DownloadRequestLimiterObserver() {
-}
-
-void DownloadRequestLimiterObserver::DidGetUserGesture() {
- if (!g_browser_process->download_request_limiter())
- return; // NULL in unitests.
- g_browser_process->download_request_limiter()->OnUserGesture(web_contents());
-}

Powered by Google App Engine
This is Rietveld 408576698