| OLD | NEW |
| 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 } |
| OLD | NEW |