| Index: chrome/browser/automation/testing_automation_provider.cc
|
| diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
|
| index d47a5ec2629bf3b19c08d482e13104cfc63268a5..1b2b47ab2d351e7df892c7c758608fd763f43600 100644
|
| --- a/chrome/browser/automation/testing_automation_provider.cc
|
| +++ b/chrome/browser/automation/testing_automation_provider.cc
|
| @@ -3127,7 +3127,7 @@ DownloadItem* GetDownloadItemFromId(int id, DownloadManager* download_manager) {
|
| it != downloads.end();
|
| it++) {
|
| DownloadItem* curr_item = *it;
|
| - if (curr_item->id() == id) {
|
| + if (curr_item->GetId() == id) {
|
| selected_item = curr_item;
|
| break;
|
| }
|
| @@ -3173,7 +3173,7 @@ void TestingAutomationProvider::PerformActionOnDownload(
|
| selected_item->OpenDownload();
|
| } else if (action == "toggle_open_files_like_this") {
|
| DownloadPrefs* prefs =
|
| - DownloadPrefs::FromDownloadManager(selected_item->download_manager());
|
| + DownloadPrefs::FromDownloadManager(selected_item->GetDownloadManager());
|
| FilePath path = selected_item->GetUserVerifiedFilePath();
|
| if (!selected_item->ShouldOpenFileBasedOnExtension())
|
| prefs->EnableAutoOpenBasedOnExtension(path);
|
|
|