Index: chrome/browser/automation/automation_provider.cc |
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc |
index 31acc47ea4993aa67972f55ffb700c2f36d5b804..e3f5cb123d59f5966c28cc981eee26b6bd9e2fc9 100644 |
--- a/chrome/browser/automation/automation_provider.cc |
+++ b/chrome/browser/automation/automation_provider.cc |
@@ -300,7 +300,7 @@ int AutomationProvider::GetIndexForNavigationController( |
// TODO(phajdan.jr): move to TestingAutomationProvider. |
DictionaryValue* AutomationProvider::GetDictionaryFromDownloadItem( |
- const DownloadItem* download) { |
+ const DownloadItem* download, bool incognito) { |
std::map<DownloadItem::DownloadState, std::string> state_to_string; |
state_to_string[DownloadItem::IN_PROGRESS] = std::string("IN_PROGRESS"); |
state_to_string[DownloadItem::CANCELLED] = std::string("CANCELLED"); |
@@ -325,7 +325,7 @@ DictionaryValue* AutomationProvider::GetDictionaryFromDownloadItem( |
dl_item_value->SetBoolean("open_when_complete", |
download->GetOpenWhenComplete()); |
dl_item_value->SetBoolean("is_temporary", download->IsTemporary()); |
- dl_item_value->SetBoolean("is_otr", download->IsOtr()); // incognito |
+ dl_item_value->SetBoolean("is_otr", incognito); |
dl_item_value->SetString("state", state_to_string[download->GetState()]); |
dl_item_value->SetString("safety_state", |
safety_state_to_string[download->GetSafetyState()]); |