| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/extensions/theme_installed_infobar_delegate.h" | 5 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/browser_theme_provider.h" | |
| 13 #include "chrome/browser/extensions/extensions_service.h" | 12 #include "chrome/browser/extensions/extensions_service.h" |
| 14 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
| 15 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
| 15 #include "chrome/browser/themes/browser_theme_provider.h" |
| 16 #include "chrome/common/extensions/extension.h" | 16 #include "chrome/common/extensions/extension.h" |
| 17 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
| 18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 19 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
| 20 | 20 |
| 21 ThemeInstalledInfoBarDelegate::ThemeInstalledInfoBarDelegate( | 21 ThemeInstalledInfoBarDelegate::ThemeInstalledInfoBarDelegate( |
| 22 TabContents* tab_contents, const Extension* new_theme, | 22 TabContents* tab_contents, const Extension* new_theme, |
| 23 const std::string& previous_theme_id) | 23 const std::string& previous_theme_id) |
| 24 : ConfirmInfoBarDelegate(tab_contents), | 24 : ConfirmInfoBarDelegate(tab_contents), |
| 25 profile_(tab_contents->profile()), | 25 profile_(tab_contents->profile()), |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 109 } |
| 110 | 110 |
| 111 default: | 111 default: |
| 112 NOTREACHED(); | 112 NOTREACHED(); |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 bool ThemeInstalledInfoBarDelegate::MatchesTheme(Extension* theme) { | 116 bool ThemeInstalledInfoBarDelegate::MatchesTheme(Extension* theme) { |
| 117 return (theme && theme->id() == theme_id_); | 117 return (theme && theme->id() == theme_id_); |
| 118 } | 118 } |
| OLD | NEW |