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

Side by Side Diff: chrome/browser/dom_ui/ntp_resource_cache.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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/dom_ui/ntp_resource_cache.h" 5 #include "chrome/browser/dom_ui/ntp_resource_cache.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
11 #include "app/resource_bundle.h"
12 #include "base/command_line.h" 11 #include "base/command_line.h"
13 #include "base/file_util.h" 12 #include "base/file_util.h"
14 #include "base/ref_counted_memory.h" 13 #include "base/ref_counted_memory.h"
15 #include "base/string16.h" 14 #include "base/string16.h"
16 #include "base/string_number_conversions.h" 15 #include "base/string_number_conversions.h"
17 #include "base/time.h" 16 #include "base/time.h"
18 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
19 #include "base/values.h" 18 #include "base/values.h"
20 #include "chrome/browser/browser_thread.h" 19 #include "chrome/browser/browser_thread.h"
21 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 20 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
(...skipping 11 matching lines...) Expand all
33 #include "chrome/common/notification_type.h" 32 #include "chrome/common/notification_type.h"
34 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
35 #include "chrome/common/url_constants.h" 34 #include "chrome/common/url_constants.h"
36 #include "gfx/color_utils.h" 35 #include "gfx/color_utils.h"
37 #include "grit/browser_resources.h" 36 #include "grit/browser_resources.h"
38 #include "grit/chromium_strings.h" 37 #include "grit/chromium_strings.h"
39 #include "grit/generated_resources.h" 38 #include "grit/generated_resources.h"
40 #include "grit/locale_settings.h" 39 #include "grit/locale_settings.h"
41 #include "grit/theme_resources.h" 40 #include "grit/theme_resources.h"
42 #include "ui/base/animation/animation.h" 41 #include "ui/base/animation/animation.h"
42 #include "ui/base/resource/resource_bundle.h"
43 #include "ui/base/theme_provider.h" 43 #include "ui/base/theme_provider.h"
44 44
45 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) 45 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS)
46 #include "chrome/browser/ui/views/bookmark_bar_view.h" 46 #include "chrome/browser/ui/views/bookmark_bar_view.h"
47 #elif defined(OS_MACOSX) 47 #elif defined(OS_MACOSX)
48 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" 48 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h"
49 #elif defined(OS_POSIX) 49 #elif defined(OS_POSIX)
50 #include "chrome/browser/ui/gtk/bookmark_bar_gtk.h" 50 #include "chrome/browser/ui/gtk/bookmark_bar_gtk.h"
51 #endif 51 #endif
52 52
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 std::string css_string; 548 std::string css_string;
549 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 549 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
550 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); 550 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL);
551 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); 551 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL);
552 552
553 new_tab_css_ = new RefCountedBytes; 553 new_tab_css_ = new RefCountedBytes;
554 new_tab_css_->data.resize(css_string.size()); 554 new_tab_css_->data.resize(css_string.size());
555 std::copy(css_string.begin(), css_string.end(), 555 std::copy(css_string.begin(), css_string.end(),
556 new_tab_css_->data.begin()); 556 new_tab_css_->data.begin());
557 } 557 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/net_internals_ui.cc ('k') | chrome/browser/dom_ui/options/about_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698