| 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/google/google_util.h" | 7 #include "chrome/browser/google/google_util.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_dialogs.h" | 9 #include "chrome/browser/ui/browser_dialogs.h" |
| 10 #include "chrome/browser/ui/browser_tabstrip.h" | 10 #include "chrome/browser/ui/browser_tabstrip.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 GURL(kInsecureScriptHelpUrl))); | 38 GURL(kInsecureScriptHelpUrl))); |
| 39 chrome::AddSelectedTabWithURL(browser_, url, content::PAGE_TRANSITION_LINK); | 39 chrome::AddSelectedTabWithURL(browser_, url, content::PAGE_TRANSITION_LINK); |
| 40 return; | 40 return; |
| 41 } | 41 } |
| 42 | 42 |
| 43 if (type == CONTENT_SETTINGS_TYPE_PROTOCOL_HANDLERS) { | 43 if (type == CONTENT_SETTINGS_TYPE_PROTOCOL_HANDLERS) { |
| 44 chrome::ShowSettingsSubPage(browser_, chrome::kHandlerSettingsSubPage); | 44 chrome::ShowSettingsSubPage(browser_, chrome::kHandlerSettingsSubPage); |
| 45 return; | 45 return; |
| 46 } | 46 } |
| 47 | 47 |
| 48 if (type == CONTENT_SETTINGS_TYPE_SAVE_PASSWORD) { | |
| 49 chrome::ShowSettingsSubPage(browser_, chrome::kPasswordManagerSubPage); | |
| 50 return; | |
| 51 } | |
| 52 | |
| 53 chrome::ShowContentSettings(browser_, type); | 48 chrome::ShowContentSettings(browser_, type); |
| 54 } | 49 } |
| OLD | NEW |