OLD | NEW |
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" |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "grit/generated_resources.h" | 40 #include "grit/generated_resources.h" |
41 #include "grit/locale_settings.h" | 41 #include "grit/locale_settings.h" |
42 #include "grit/theme_resources.h" | 42 #include "grit/theme_resources.h" |
43 #include "ui/base/animation/animation.h" | 43 #include "ui/base/animation/animation.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/gtk/bookmark_bar_gtk.h" | 50 #include "chrome/browser/ui/gtk/bookmark_bar_gtk.h" |
51 #endif | 51 #endif |
52 | 52 |
53 using base::Time; | 53 using base::Time; |
54 | 54 |
55 namespace { | 55 namespace { |
56 | 56 |
57 // The URL for the the Learn More page shown on incognito new tab. | 57 // The URL for the the Learn More page shown on incognito new tab. |
58 const char kLearnMoreIncognitoUrl[] = | 58 const char kLearnMoreIncognitoUrl[] = |
59 #if defined(OS_CHROMEOS) | 59 #if defined(OS_CHROMEOS) |
60 "http://www.google.com/support/chromeos/bin/answer.py?answer=95464"; | 60 "http://www.google.com/support/chromeos/bin/answer.py?answer=95464"; |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 std::string css_string; | 547 std::string css_string; |
548 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); | 548 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); |
549 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); | 549 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); |
550 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); | 550 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); |
551 | 551 |
552 new_tab_css_ = new RefCountedBytes; | 552 new_tab_css_ = new RefCountedBytes; |
553 new_tab_css_->data.resize(css_string.size()); | 553 new_tab_css_->data.resize(css_string.size()); |
554 std::copy(css_string.begin(), css_string.end(), | 554 std::copy(css_string.begin(), css_string.end(), |
555 new_tab_css_->data.begin()); | 555 new_tab_css_->data.begin()); |
556 } | 556 } |
OLD | NEW |