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

Side by Side Diff: chrome/browser/extensions/theme_installed_infobar_delegate.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome/browser/extensions/extensions_ui.cc ('k') | chrome/browser/first_run/first_run_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/tab_contents/tab_contents.h" 13 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/browser/themes/browser_theme_provider.h" 14 #include "chrome/browser/themes/browser_theme_provider.h"
16 #include "chrome/common/extensions/extension.h" 15 #include "chrome/common/extensions/extension.h"
17 #include "chrome/common/notification_service.h" 16 #include "chrome/common/notification_service.h"
18 #include "grit/generated_resources.h" 17 #include "grit/generated_resources.h"
19 #include "grit/theme_resources.h" 18 #include "grit/theme_resources.h"
19 #include "ui/base/resource/resource_bundle.h"
20 20
21 ThemeInstalledInfoBarDelegate::ThemeInstalledInfoBarDelegate( 21 ThemeInstalledInfoBarDelegate::ThemeInstalledInfoBarDelegate(
22 TabContents* tab_contents, 22 TabContents* tab_contents,
23 const Extension* new_theme, 23 const Extension* new_theme,
24 const std::string& previous_theme_id) 24 const std::string& previous_theme_id)
25 : ConfirmInfoBarDelegate(tab_contents), 25 : ConfirmInfoBarDelegate(tab_contents),
26 profile_(tab_contents->profile()), 26 profile_(tab_contents->profile()),
27 name_(new_theme->name()), 27 name_(new_theme->name()),
28 theme_id_(new_theme->id()), 28 theme_id_(new_theme->id()),
29 previous_theme_id_(previous_theme_id), 29 previous_theme_id_(previous_theme_id),
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // (when InfoBar::OnBackgroundExpose() is called). This will likely 112 // (when InfoBar::OnBackgroundExpose() is called). This will likely
113 // be fixed when infobar delegate deletion is cleaned up for 113 // be fixed when infobar delegate deletion is cleaned up for
114 // http://crbug.com/62154. 114 // http://crbug.com/62154.
115 } 115 }
116 } 116 }
117 } 117 }
118 118
119 bool ThemeInstalledInfoBarDelegate::MatchesTheme(const Extension* theme) { 119 bool ThemeInstalledInfoBarDelegate::MatchesTheme(const Extension* theme) {
120 return (theme && theme->id() == theme_id_); 120 return (theme && theme->id() == theme_id_);
121 } 121 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extensions_ui.cc ('k') | chrome/browser/first_run/first_run_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698