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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_message_bubble_bridge.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/cocoa/extensions/extension_message_bubble_bridge.h" 5 #include "chrome/browser/ui/cocoa/extensions/extension_message_bubble_bridge.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "chrome/browser/extensions/extension_message_bubble_controller.h" 9 #include "chrome/browser/extensions/extension_message_bubble_controller.h"
10 #include "chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h" 10 #include "chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h"
11 11
12 ExtensionMessageBubbleBridge::ExtensionMessageBubbleBridge( 12 ExtensionMessageBubbleBridge::ExtensionMessageBubbleBridge(
13 scoped_ptr<extensions::ExtensionMessageBubbleController> controller, 13 std::unique_ptr<extensions::ExtensionMessageBubbleController> controller,
14 bool anchored_to_extension) 14 bool anchored_to_extension)
15 : controller_(std::move(controller)), 15 : controller_(std::move(controller)),
16 anchored_to_extension_(anchored_to_extension) {} 16 anchored_to_extension_(anchored_to_extension) {}
17 17
18 ExtensionMessageBubbleBridge::~ExtensionMessageBubbleBridge() { 18 ExtensionMessageBubbleBridge::~ExtensionMessageBubbleBridge() {
19 } 19 }
20 20
21 base::string16 ExtensionMessageBubbleBridge::GetHeadingText() { 21 base::string16 ExtensionMessageBubbleBridge::GetHeadingText() {
22 return controller_->delegate()->GetTitle(); 22 return controller_->delegate()->GetTitle();
23 } 23 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 break; 61 break;
62 } 62 }
63 case CLOSE_EXECUTE: 63 case CLOSE_EXECUTE:
64 controller_->OnBubbleAction(); 64 controller_->OnBubbleAction();
65 break; 65 break;
66 case CLOSE_LEARN_MORE: 66 case CLOSE_LEARN_MORE:
67 controller_->OnLinkClicked(); 67 controller_->OnLinkClicked();
68 break; 68 break;
69 } 69 }
70 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698