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

Side by Side Diff: chrome/browser/ui/website_settings/chooser_bubble_delegate.cc

Issue 1473393003: Add chooser permission UI code for Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wpu_1
Patch Set: updated code to calculate width for table column Created 5 years 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/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" 7 #include "chrome/browser/ui/website_settings/chooser_options.h"
8 #include "components/bubble/bubble_ui.h"
8 9
9 ChooserBubbleDelegate::ChooserBubbleDelegate() {} 10 ChooserBubbleDelegate::ChooserBubbleDelegate(Browser* browser)
11 : browser_(browser) {
12 DCHECK(browser_);
13 }
10 14
11 ChooserBubbleDelegate::~ChooserBubbleDelegate() {} 15 ChooserBubbleDelegate::~ChooserBubbleDelegate() {}
12 16
13 std::string ChooserBubbleDelegate::GetName() const { 17 std::string ChooserBubbleDelegate::GetName() const {
14 return "ChooserBubble"; 18 return "ChooserBubble";
15 } 19 }
20
21 scoped_ptr<BubbleUi> ChooserBubbleDelegate::BuildBubbleUi() {
22 return CreateBubbleUi(browser_, chooser_options_.get(), this);
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698