| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "apps/saved_files_service.h" | 5 #include "apps/saved_files_service.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/apps/app_browsertest_util.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/extensions/api/file_system/file_system_api.h" | 11 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
| 11 #include "chrome/browser/extensions/extension_prefs.h" | 12 #include "chrome/browser/extensions/extension_prefs.h" |
| 12 #include "chrome/browser/extensions/platform_app_browsertest_util.h" | |
| 13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
| 14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
| 15 #include "content/public/browser/notification_service.h" | 15 #include "content/public/browser/notification_service.h" |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 class AppInstallObserver : public content::NotificationObserver { | 21 class AppInstallObserver : public content::NotificationObserver { |
| 22 public: | 22 public: |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 AppInstallObserver observer( | 572 AppInstallObserver observer( |
| 573 base::Bind(SetLastChooseEntryDirectoryToAppDirectory, | 573 base::Bind(SetLastChooseEntryDirectoryToAppDirectory, |
| 574 ExtensionPrefs::Get(profile()))); | 574 ExtensionPrefs::Get(profile()))); |
| 575 ASSERT_TRUE(RunPlatformAppTest( | 575 ASSERT_TRUE(RunPlatformAppTest( |
| 576 "api_test/file_system/open_writable_existing_non_writable")) | 576 "api_test/file_system/open_writable_existing_non_writable")) |
| 577 << message_; | 577 << message_; |
| 578 } | 578 } |
| 579 } | 579 } |
| 580 | 580 |
| 581 } // namespace extensions | 581 } // namespace extensions |
| OLD | NEW |