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

Side by Side Diff: chrome/browser/ui/browser_content_setting_bubble_model_delegate.cc

Issue 10584042: Bring up a content settings icon for ungestured registerProtocolHandler call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments. Move to radio buttons Created 8 years, 6 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 | Annotate | Revision Log
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 #include "chrome/browser/ui/browser_content_setting_bubble_model_delegate.h" 5 #include "chrome/browser/ui/browser_content_setting_bubble_model_delegate.h"
6 6
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/chrome_pages.h" 8 #include "chrome/browser/ui/chrome_pages.h"
9 #include "chrome/common/url_constants.h"
9 10
10 BrowserContentSettingBubbleModelDelegate:: 11 BrowserContentSettingBubbleModelDelegate::
11 BrowserContentSettingBubbleModelDelegate(Browser* browser) : browser_(browser) { 12 BrowserContentSettingBubbleModelDelegate(Browser* browser) : browser_(browser) {
12 } 13 }
13 14
14 BrowserContentSettingBubbleModelDelegate:: 15 BrowserContentSettingBubbleModelDelegate::
15 ~BrowserContentSettingBubbleModelDelegate() { 16 ~BrowserContentSettingBubbleModelDelegate() {
16 } 17 }
17 18
18 void BrowserContentSettingBubbleModelDelegate::ShowCollectedCookiesDialog( 19 void BrowserContentSettingBubbleModelDelegate::ShowCollectedCookiesDialog(
19 TabContents* contents) { 20 TabContents* contents) {
20 browser_->ShowCollectedCookiesDialog(contents); 21 browser_->ShowCollectedCookiesDialog(contents);
21 } 22 }
22 23
23 void BrowserContentSettingBubbleModelDelegate::ShowContentSettingsPage( 24 void BrowserContentSettingBubbleModelDelegate::ShowContentSettingsPage(
24 ContentSettingsType type) { 25 ContentSettingsType type) {
26 if (type == CONTENT_SETTINGS_TYPE_REGISTER_PROTOCOL_HANDLER) {
27 chrome::ShowSettingsSubPage(browser_, chrome::kHandlerSettingsSubPage);
28 return;
29 }
30
25 chrome::ShowContentSettings(browser_, type); 31 chrome::ShowContentSettings(browser_, type);
26 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698