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

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: 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/common/url_constants.h"
8 9
9 BrowserContentSettingBubbleModelDelegate:: 10 BrowserContentSettingBubbleModelDelegate::
10 BrowserContentSettingBubbleModelDelegate(Browser* browser) : browser_(browser) { 11 BrowserContentSettingBubbleModelDelegate(Browser* browser) : browser_(browser) {
11 } 12 }
12 13
13 BrowserContentSettingBubbleModelDelegate:: 14 BrowserContentSettingBubbleModelDelegate::
14 ~BrowserContentSettingBubbleModelDelegate() { 15 ~BrowserContentSettingBubbleModelDelegate() {
15 } 16 }
16 17
17 void BrowserContentSettingBubbleModelDelegate::ShowCollectedCookiesDialog( 18 void BrowserContentSettingBubbleModelDelegate::ShowCollectedCookiesDialog(
18 TabContents* contents) { 19 TabContents* contents) {
19 browser_->ShowCollectedCookiesDialog(contents); 20 browser_->ShowCollectedCookiesDialog(contents);
20 } 21 }
21 22
22 void BrowserContentSettingBubbleModelDelegate::ShowContentSettingsPage( 23 void BrowserContentSettingBubbleModelDelegate::ShowContentSettingsPage(
23 ContentSettingsType type) { 24 ContentSettingsType type) {
25 if (type == CONTENT_SETTINGS_TYPE_REGISTER_PROTOCOL_HANDLER) {
26 browser_->ShowOptionsTab(chrome::kHandlerSettingsSubPage);
27 return;
28 }
29
24 browser_->ShowContentSettingsPage(type); 30 browser_->ShowContentSettingsPage(type);
25 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698