OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/file_path.h" | 5 #include "base/file_path.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/scoped_temp_dir.h" | 9 #include "base/scoped_temp_dir.h" |
10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util.h" |
11 #include "base/test/test_file_util.h" | 11 #include "base/test/test_file_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/download/download_crx_util.h" | 14 #include "chrome/browser/download/download_crx_util.h" |
15 #include "chrome/browser/download/download_file_manager.h" | 15 #include "chrome/browser/download/download_file_manager.h" |
16 #include "chrome/browser/download/download_history.h" | 16 #include "chrome/browser/download/download_history.h" |
17 #include "chrome/browser/download/download_item.h" | 17 #include "chrome/browser/download/download_item.h" |
18 #include "chrome/browser/download/download_manager.h" | 18 #include "chrome/browser/download/download_manager.h" |
19 #include "chrome/browser/download/download_prefs.h" | 19 #include "chrome/browser/download/download_prefs.h" |
20 #include "chrome/browser/download/download_shelf.h" | 20 #include "chrome/browser/download/download_shelf.h" |
(...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 EXPECT_EQ(1u, observer->NumDangerousDownloadsSeen()); | 1711 EXPECT_EQ(1u, observer->NumDangerousDownloadsSeen()); |
1712 | 1712 |
1713 // Download shelf should close. Download panel stays open on ChromeOS. | 1713 // Download shelf should close. Download panel stays open on ChromeOS. |
1714 CheckDownloadUI(browser(), false, true, FilePath()); | 1714 CheckDownloadUI(browser(), false, true, FilePath()); |
1715 | 1715 |
1716 // Check that the extension was installed. | 1716 // Check that the extension was installed. |
1717 ExtensionService* extension_service = | 1717 ExtensionService* extension_service = |
1718 browser()->profile()->GetExtensionService(); | 1718 browser()->profile()->GetExtensionService(); |
1719 ASSERT_TRUE(extension_service->GetExtensionById(kLargeThemeCrxId, false)); | 1719 ASSERT_TRUE(extension_service->GetExtensionById(kLargeThemeCrxId, false)); |
1720 } | 1720 } |
OLD | NEW |