| 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/content_settings/chrome_content_settings_utils.h" | 7 #include "chrome/browser/content_settings/chrome_content_settings_utils.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_tabstrip.h" | 9 #include "chrome/browser/ui/browser_tabstrip.h" |
| 10 #include "chrome/browser/ui/chrome_pages.h" | 10 #include "chrome/browser/ui/chrome_pages.h" |
| 11 #include "chrome/browser/ui/tab_dialogs.h" | 11 #include "chrome/browser/ui/tab_dialogs.h" |
| 12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
| 13 #include "components/google/core/browser/google_util.h" | 13 #include "components/google/core/browser/google_util.h" |
| 14 | 14 |
| 15 // The URL for when the user clicks "learn more" on the mixed scripting page | 15 // The URL for when the user clicks "learn more" on the mixed scripting page |
| 16 // icon bubble. | 16 // icon bubble. |
| 17 const char kInsecureScriptHelpUrl[] = | 17 const char kInsecureScriptHelpUrl[] = |
| 18 "https://support.google.com/chrome/answer/1342714"; | 18 "https://support.google.com/chrome/?p=unauthenticated"; |
| 19 | 19 |
| 20 BrowserContentSettingBubbleModelDelegate:: | 20 BrowserContentSettingBubbleModelDelegate:: |
| 21 BrowserContentSettingBubbleModelDelegate(Browser* browser) : browser_(browser) { | 21 BrowserContentSettingBubbleModelDelegate(Browser* browser) : browser_(browser) { |
| 22 } | 22 } |
| 23 | 23 |
| 24 BrowserContentSettingBubbleModelDelegate:: | 24 BrowserContentSettingBubbleModelDelegate:: |
| 25 ~BrowserContentSettingBubbleModelDelegate() { | 25 ~BrowserContentSettingBubbleModelDelegate() { |
| 26 } | 26 } |
| 27 | 27 |
| 28 void BrowserContentSettingBubbleModelDelegate::ShowCollectedCookiesDialog( | 28 void BrowserContentSettingBubbleModelDelegate::ShowCollectedCookiesDialog( |
| (...skipping 26 matching lines...) Expand all Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 void BrowserContentSettingBubbleModelDelegate::ShowLearnMorePage( | 57 void BrowserContentSettingBubbleModelDelegate::ShowLearnMorePage( |
| 58 ContentSettingsType type) { | 58 ContentSettingsType type) { |
| 59 if (type != CONTENT_SETTINGS_TYPE_PLUGINS) | 59 if (type != CONTENT_SETTINGS_TYPE_PLUGINS) |
| 60 return; | 60 return; |
| 61 chrome::AddSelectedTabWithURL(browser_, | 61 chrome::AddSelectedTabWithURL(browser_, |
| 62 GURL(chrome::kBlockedPluginLearnMoreURL), | 62 GURL(chrome::kBlockedPluginLearnMoreURL), |
| 63 ui::PAGE_TRANSITION_LINK); | 63 ui::PAGE_TRANSITION_LINK); |
| 64 } | 64 } |
| OLD | NEW |