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

Unified Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 10805020: Kill DownloadItem::IsOtr() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 8 years, 4 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/automation/automation_provider_observers.cc
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc
index 4f7b70ae4f119a211a8d97794a72892484616f20..3f7aa86ffbe4f89f9d1311efbc4ecdecae45903d 100644
--- a/chrome/browser/automation/automation_provider_observers.cc
+++ b/chrome/browser/automation/automation_provider_observers.cc
@@ -1448,10 +1448,12 @@ AutomationProviderDownloadUpdatedObserver::
AutomationProviderDownloadUpdatedObserver(
AutomationProvider* provider,
IPC::Message* reply_message,
- bool wait_for_open)
+ bool wait_for_open,
+ bool incognito)
: provider_(provider->AsWeakPtr()),
reply_message_(reply_message),
- wait_for_open_(wait_for_open) {
+ wait_for_open_(wait_for_open),
+ incognito_(incognito) {
}
AutomationProviderDownloadUpdatedObserver::
@@ -1468,7 +1470,7 @@ void AutomationProviderDownloadUpdatedObserver::OnDownloadUpdated(
if (provider_) {
scoped_ptr<DictionaryValue> return_value(
- provider_->GetDictionaryFromDownloadItem(download));
+ provider_->GetDictionaryFromDownloadItem(download, incognito_));
AutomationJSONReply(provider_, reply_message_.release()).SendSuccess(
return_value.get());
}
@@ -1481,7 +1483,7 @@ void AutomationProviderDownloadUpdatedObserver::OnDownloadOpened(
if (provider_) {
scoped_ptr<DictionaryValue> return_value(
- provider_->GetDictionaryFromDownloadItem(download));
+ provider_->GetDictionaryFromDownloadItem(download, incognito_));
AutomationJSONReply(provider_, reply_message_.release()).SendSuccess(
return_value.get());
}
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.h ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698