| 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 "chrome/browser/ui/views/select_file_dialog_extension.h" | 5 #include "chrome/browser/ui/views/select_file_dialog_extension.h" |
| 6 | 6 |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 12 #include "base/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
| 15 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 16 #include "chrome/browser/chromeos/file_manager/volume_manager.h" | 17 #include "chrome/browser/chromeos/file_manager/volume_manager.h" |
| 17 #include "chrome/browser/extensions/component_loader.h" | 18 #include "chrome/browser/extensions/component_loader.h" |
| 18 #include "chrome/browser/extensions/extension_browsertest.h" | 19 #include "chrome/browser/extensions/extension_browsertest.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 ASSERT_FALSE(second_dialog_->IsRunning(owning_window)); | 398 ASSERT_FALSE(second_dialog_->IsRunning(owning_window)); |
| 398 | 399 |
| 399 // Click cancel button. | 400 // Click cancel button. |
| 400 CloseDialog(DIALOG_BTN_CANCEL, owning_window); | 401 CloseDialog(DIALOG_BTN_CANCEL, owning_window); |
| 401 | 402 |
| 402 // Listener should have been informed of the cancellation. | 403 // Listener should have been informed of the cancellation. |
| 403 ASSERT_FALSE(listener_->file_selected()); | 404 ASSERT_FALSE(listener_->file_selected()); |
| 404 ASSERT_TRUE(listener_->canceled()); | 405 ASSERT_TRUE(listener_->canceled()); |
| 405 ASSERT_EQ(this, listener_->params()); | 406 ASSERT_EQ(this, listener_->params()); |
| 406 } | 407 } |
| OLD | NEW |