prompt->SetPermissionsDetails(details, type);
base::scoped_nsobject<ExtensionInstallViewController> controller(
- [[ExtensionInstallViewController alloc] initWithNavigator:browser()
- delegate:&delegate
- prompt:prompt]);
+ [[ExtensionInstallViewController alloc] initWithProfile:profile()
+ navigator:browser()
+ delegate:&delegate
+ prompt:prompt]);
[controller view]; // Force nib load.
prompt->SetPermissionsDetails(details, type);
base::scoped_nsobject<ExtensionInstallViewController> controller(
- [[ExtensionInstallViewController alloc] initWithNavigator:browser()
- delegate:&delegate
- prompt:prompt]);
+ [[ExtensionInstallViewController alloc] initWithProfile:profile()
+ navigator:browser()
+ delegate:&delegate
+ prompt:prompt]);
[controller view]; // Force nib load.
[controller ok:nil];
base::scoped_nsobject<ExtensionInstallViewController> controller1(
[[ExtensionInstallViewController alloc]
- initWithNavigator:browser()
- delegate:&delegate1
- prompt:one_warning_prompt]);
+ initWithProfile:profile()
+ navigator:browser()
+ delegate:&delegate1
+ prompt:one_warning_prompt]);
[controller1 view]; // Force nib load.
base::scoped_nsobject<ExtensionInstallViewController> controller2(
[[ExtensionInstallViewController alloc]
- initWithNavigator:browser()
- delegate:&delegate2
- prompt:two_warnings_prompt]);
+ initWithProfile:profile()
+ navigator:browser()
+ delegate:&delegate2
+ prompt:two_warnings_prompt]);
[controller2 view]; // Force nib load.
base::scoped_nsobject<ExtensionInstallViewController> controller(
[[ExtensionInstallViewController alloc]
- initWithNavigator:browser()
- delegate:&delegate
- prompt:no_warnings_prompt]);
+ initWithProfile:profile()
+ navigator:browser()
+ delegate:&delegate
+ prompt:no_warnings_prompt]);
[controller view]; // Force nib load.
inline_prompt->set_icon(chrome::LoadInstallPromptIcon());
base::scoped_nsobject<ExtensionInstallViewController> controller(
- [[ExtensionInstallViewController alloc] initWithNavigator:browser()
- delegate:&delegate
- prompt:inline_prompt]);
+ [[ExtensionInstallViewController alloc] initWithProfile:profile()
+ navigator:browser()
+ delegate:&delegate
+ prompt:inline_prompt]);
[controller view]; // Force nib load.
prompt->SetPermissionsDetails(details, type);
base::scoped_nsobject<ExtensionInstallViewController> controller(
- [[ExtensionInstallViewController alloc] initWithNavigator:browser()
- delegate:&delegate
- prompt:prompt]);
+ [[ExtensionInstallViewController alloc] initWithProfile:profile()
+ navigator:browser()
+ delegate:&delegate
+ prompt:prompt]);
[controller view]; // Force nib load.
ExtensionInstallPrompt::PERMISSIONS_DETAILS, 0, true);
base::scoped_nsobject<ExtensionInstallViewController> controller(
- [[ExtensionInstallViewController alloc] initWithNavigator:browser()
- delegate:&delegate
- prompt:prompt]);
+ [[ExtensionInstallViewController alloc] initWithProfile:profile()
+ navigator:browser()
+ delegate:&delegate
+ prompt:prompt]);
[controller view]; // Force nib load.