Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/website_settings/chooser_bubble_delegate.h" | 5 #include "chrome/browser/ui/website_settings/chooser_bubble_delegate.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/website_settings/chooser_options.h" | |
| 8 #include "components/bubble/bubble_ui.h" | |
| 9 | |
| 7 ChooserBubbleDelegate::ChooserBubbleDelegate() {} | 10 ChooserBubbleDelegate::ChooserBubbleDelegate() {} |
| 8 | 11 |
| 9 ChooserBubbleDelegate::~ChooserBubbleDelegate() {} | 12 ChooserBubbleDelegate::~ChooserBubbleDelegate() {} |
| 10 | 13 |
| 11 std::string ChooserBubbleDelegate::GetName() const { | 14 std::string ChooserBubbleDelegate::GetName() const { |
| 12 return "ChooserBubble"; | 15 return "ChooserBubble"; |
| 13 } | 16 } |
| 17 | |
| 18 scoped_ptr<BubbleUi> ChooserBubbleDelegate::BuildBubbleUi() { | |
| 19 scoped_ptr<BubbleUi> bubble_ui = | |
| 20 CreateBubbleUi(browser_, chooser_options_.get(), this); | |
| 21 return bubble_ui.Pass(); | |
|
Reilly Grant (use Gerrit)
2015/12/02 19:25:53
No need for a local, just:
return CreateBubbleUi(
juncai
2015/12/03 05:19:08
Done.
| |
| 22 } | |
| OLD | NEW |