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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_install_view_controller.mm

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 #import "chrome/browser/ui/cocoa/extensions/extension_install_view_controller.h" 5 #import "chrome/browser/ui/cocoa/extensions/extension_install_view_controller.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 @synthesize outlineView = outlineView_; 221 @synthesize outlineView = outlineView_;
222 @synthesize warningsSeparator = warningsSeparator_; 222 @synthesize warningsSeparator = warningsSeparator_;
223 @synthesize ratingStars = ratingStars_; 223 @synthesize ratingStars = ratingStars_;
224 @synthesize ratingCountField = ratingCountField_; 224 @synthesize ratingCountField = ratingCountField_;
225 @synthesize userCountField = userCountField_; 225 @synthesize userCountField = userCountField_;
226 @synthesize storeLinkButton = storeLinkButton_; 226 @synthesize storeLinkButton = storeLinkButton_;
227 227
228 - (id)initWithProfile:(Profile*)profile 228 - (id)initWithProfile:(Profile*)profile
229 navigator:(content::PageNavigator*)navigator 229 navigator:(content::PageNavigator*)navigator
230 delegate:(ExtensionInstallViewDelegate*)delegate 230 delegate:(ExtensionInstallViewDelegate*)delegate
231 prompt:(scoped_ptr<ExtensionInstallPrompt::Prompt>)prompt { 231 prompt:(std::unique_ptr<ExtensionInstallPrompt::Prompt>)prompt {
232 // We use a different XIB in the case of bundle installs, installs with 232 // We use a different XIB in the case of bundle installs, installs with
233 // webstore data, or no permission warnings. These are laid out nicely for 233 // webstore data, or no permission warnings. These are laid out nicely for
234 // the data they display. 234 // the data they display.
235 NSString* nibName = nil; 235 NSString* nibName = nil;
236 if (prompt->type() == ExtensionInstallPrompt::BUNDLE_INSTALL_PROMPT) { 236 if (prompt->type() == ExtensionInstallPrompt::BUNDLE_INSTALL_PROMPT) {
237 nibName = @"ExtensionInstallPromptBundle"; 237 nibName = @"ExtensionInstallPromptBundle";
238 } else if (prompt->has_webstore_data()) { 238 } else if (prompt->has_webstore_data()) {
239 nibName = @"ExtensionInstallPromptWebstoreData"; 239 nibName = @"ExtensionInstallPromptWebstoreData";
240 } else if (!prompt->ShouldShowPermissions() && 240 } else if (!prompt->ShouldShowPermissions() &&
241 prompt->GetRetainedFileCount() == 0 && 241 prompt->GetRetainedFileCount() == 0 &&
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 } 857 }
858 858
859 - (void)accessibilityPerformAction:(NSString*)action { 859 - (void)accessibilityPerformAction:(NSString*)action {
860 if ([action isEqualToString:NSAccessibilityPressAction]) 860 if ([action isEqualToString:NSAccessibilityPressAction])
861 [self handleLinkClicked]; 861 [self handleLinkClicked];
862 else 862 else
863 [super accessibilityPerformAction:action]; 863 [super accessibilityPerformAction:action];
864 } 864 }
865 865
866 @end 866 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698