| 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 #import "chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.
h" | 5 #import "chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.
h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
| 12 #include "chrome/common/extensions/extension.h" | 12 #include "extensions/common/extension.h" |
| 13 | 13 |
| 14 using extensions::Extension; | 14 using extensions::Extension; |
| 15 | 15 |
| 16 namespace chrome { | 16 namespace chrome { |
| 17 | 17 |
| 18 void MockExtensionInstallPromptDelegate::InstallUIProceed() { | 18 void MockExtensionInstallPromptDelegate::InstallUIProceed() { |
| 19 ++proceed_count_; | 19 ++proceed_count_; |
| 20 } | 20 } |
| 21 | 21 |
| 22 void MockExtensionInstallPromptDelegate::InstallUIAbort(bool user_initiated) { | 22 void MockExtensionInstallPromptDelegate::InstallUIAbort(bool user_initiated) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ExtensionInstallPrompt::Prompt BuildExtensionPostInstallPermissionsPrompt( | 76 ExtensionInstallPrompt::Prompt BuildExtensionPostInstallPermissionsPrompt( |
| 77 Extension* extension) { | 77 Extension* extension) { |
| 78 ExtensionInstallPrompt::Prompt prompt( | 78 ExtensionInstallPrompt::Prompt prompt( |
| 79 ExtensionInstallPrompt::POST_INSTALL_PERMISSIONS_PROMPT); | 79 ExtensionInstallPrompt::POST_INSTALL_PERMISSIONS_PROMPT); |
| 80 prompt.set_extension(extension); | 80 prompt.set_extension(extension); |
| 81 prompt.set_icon(LoadInstallPromptIcon()); | 81 prompt.set_icon(LoadInstallPromptIcon()); |
| 82 return prompt; | 82 return prompt; |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace chrome | 85 } // namespace chrome |
| OLD | NEW |