Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTILS_H _ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTILS_H _
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTILS_H _ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTILS_H _
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "chrome/browser/extensions/extension_install_prompt.h" 9 #include "chrome/browser/extensions/extension_install_prompt.h"
10 10
11 namespace chrome { 11 namespace chrome {
12 12
13 // Loads the test extension from the given test directory and manifest file. 13 // Loads the test extension from the given test directory and manifest file.
14 scoped_refptr<extensions::Extension> LoadInstallPromptExtension( 14 scoped_refptr<extensions::Extension> LoadInstallPromptExtension(
15 const char* extension_dir_name, 15 const char* extension_dir_name,
16 const char* manifest_file); 16 const char* manifest_file);
17 17
18 // Loads the default install_prompt test extension. 18 // Loads the default install_prompt test extension.
19 scoped_refptr<extensions::Extension> LoadInstallPromptExtension(); 19 scoped_refptr<extensions::Extension> LoadInstallPromptExtension();
20 20
21 // Loads the icon for the install prompt extension. 21 // Loads the icon for the install prompt extension.
22 gfx::Image LoadInstallPromptIcon(); 22 gfx::Image LoadInstallPromptIcon();
23 23
24 // Builds a prompt using the given extension. 24 // Builds a prompt using the given extension.
25 scoped_ptr<ExtensionInstallPrompt::Prompt> BuildExtensionInstallPrompt( 25 std::unique_ptr<ExtensionInstallPrompt::Prompt> BuildExtensionInstallPrompt(
26 extensions::Extension* extension); 26 extensions::Extension* extension);
27 27
28 scoped_ptr<ExtensionInstallPrompt::Prompt> 28 std::unique_ptr<ExtensionInstallPrompt::Prompt>
29 BuildExtensionPostInstallPermissionsPrompt(extensions::Extension* extension); 29 BuildExtensionPostInstallPermissionsPrompt(extensions::Extension* extension);
30 30
31 } // namespace chrome 31 } // namespace chrome
32 32
33 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTIL S_H_ 33 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTIL S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698