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

Side by Side Diff: chrome/common/net/net_resource_provider.cc

Issue 450053003: Use a qualified path for grit includes in various chrome/ directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove webkit strings that no longer exist Created 6 years, 4 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/common/localized_error.cc ('k') | chrome/common/net/x509_certificate_model.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/net/net_resource_provider.h" 5 #include "chrome/common/net/net_resource_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "grit/chromium_strings.h" 12 #include "chrome/grit/chromium_strings.h"
13 #include "grit/generated_resources.h" 13 #include "chrome/grit/generated_resources.h"
14 #include "grit/net_resources.h" 14 #include "net/grit/net_resources.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/base/layout.h" 16 #include "ui/base/layout.h"
17 #include "ui/base/resource/resource_bundle.h" 17 #include "ui/base/resource/resource_bundle.h"
18 #include "ui/base/webui/jstemplate_builder.h" 18 #include "ui/base/webui/jstemplate_builder.h"
19 19
20 namespace { 20 namespace {
21 21
22 // The net module doesn't have access to this HTML or the strings that need to 22 // The net module doesn't have access to this HTML or the strings that need to
23 // be localized. The Chrome locale will never change while we're running, so 23 // be localized. The Chrome locale will never change while we're running, so
24 // it's safe to have a static string that we always return a pointer into. 24 // it's safe to have a static string that we always return a pointer into.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 base::StringPiece NetResourceProvider(int key) { 57 base::StringPiece NetResourceProvider(int key) {
58 CR_DEFINE_STATIC_LOCAL(LazyDirectoryListerCacher, lazy_dir_lister, ()); 58 CR_DEFINE_STATIC_LOCAL(LazyDirectoryListerCacher, lazy_dir_lister, ());
59 59
60 if (IDR_DIR_HEADER_HTML == key) 60 if (IDR_DIR_HEADER_HTML == key)
61 return base::StringPiece(lazy_dir_lister.html_data); 61 return base::StringPiece(lazy_dir_lister.html_data);
62 62
63 return ResourceBundle::GetSharedInstance().GetRawDataResource(key); 63 return ResourceBundle::GetSharedInstance().GetRawDataResource(key);
64 } 64 }
65 65
66 } // namespace chrome_common_net 66 } // namespace chrome_common_net
OLDNEW
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/common/net/x509_certificate_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698