summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/ntp_resource_cache.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 02:16:13 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 02:16:13 +0000
commite288840fb5acf7336568ea37527d2189c8733ae8 (patch)
tree1b349cf3b3e895d99defa2d7effe2d43707c8474 /chrome/browser/dom_ui/ntp_resource_cache.cc
parent2eba1513ea24399e08de0836ce622d383e4606b8 (diff)
downloadchromium_src-e288840fb5acf7336568ea37527d2189c8733ae8.zip
chromium_src-e288840fb5acf7336568ea37527d2189c8733ae8.tar.gz
chromium_src-e288840fb5acf7336568ea37527d2189c8733ae8.tar.bz2
Special case the gallery to not show the scary download roadblock.
That was only needed because of clickjacking. BUG=28227 Review URL: http://codereview.chromium.org/411004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32588 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/ntp_resource_cache.cc')
-rw-r--r--chrome/browser/dom_ui/ntp_resource_cache.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/ntp_resource_cache.cc b/chrome/browser/dom_ui/ntp_resource_cache.cc
index 13c4222..42a235a 100644
--- a/chrome/browser/dom_ui/ntp_resource_cache.cc
+++ b/chrome/browser/dom_ui/ntp_resource_cache.cc
@@ -18,6 +18,7 @@
#include "chrome/browser/user_data_manager.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/jstemplate_builder.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/notification_type.h"
@@ -240,10 +241,10 @@ void NTPResourceCache::CreateNewTabHtml() {
localized_strings.SetString(L"promomessage",
l10n_util::GetStringF(IDS_NTP_PROMOTION_MESSAGE,
l10n_util::GetString(IDS_PRODUCT_NAME),
- ASCIIToWide(Extension::kGalleryBrowseUrl),
+ ASCIIToWide(extension_urls::kGalleryBrowsePrefix),
GetUrlWithLang(kSyncServiceHelpUrl)));
localized_strings.SetString(L"extensionslink",
- ASCIIToWide(Extension::kGalleryBrowseUrl));
+ ASCIIToWide(extension_urls::kGalleryBrowsePrefix));
// Don't initiate the sync related message passing with the page if the sync
// code is not present.