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

Side by Side Diff: extensions/common/file_util.cc

Issue 239543005: Introduce extensions_strings.grd (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move localized strings Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "extensions/common/file_util.h" 5 #include "extensions/common/file_util.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 12 matching lines...) Expand all
23 #include "extensions/common/constants.h" 23 #include "extensions/common/constants.h"
24 #include "extensions/common/extension.h" 24 #include "extensions/common/extension.h"
25 #include "extensions/common/extension_icon_set.h" 25 #include "extensions/common/extension_icon_set.h"
26 #include "extensions/common/extension_l10n_util.h" 26 #include "extensions/common/extension_l10n_util.h"
27 #include "extensions/common/install_warning.h" 27 #include "extensions/common/install_warning.h"
28 #include "extensions/common/manifest.h" 28 #include "extensions/common/manifest.h"
29 #include "extensions/common/manifest_constants.h" 29 #include "extensions/common/manifest_constants.h"
30 #include "extensions/common/manifest_handler.h" 30 #include "extensions/common/manifest_handler.h"
31 #include "extensions/common/manifest_handlers/icons_handler.h" 31 #include "extensions/common/manifest_handlers/icons_handler.h"
32 #include "extensions/common/message_bundle.h" 32 #include "extensions/common/message_bundle.h"
33 #include "grit/generated_resources.h" 33 #include "grit/extensions_strings.h"
34 #include "net/base/escape.h" 34 #include "net/base/escape.h"
35 #include "ui/base/l10n/l10n_util.h" 35 #include "ui/base/l10n/l10n_util.h"
36 #include "url/gurl.h" 36 #include "url/gurl.h"
37 37
38 namespace extensions { 38 namespace extensions {
39 namespace file_util { 39 namespace file_util {
40 namespace { 40 namespace {
41 41
42 // Returns true if the given file path exists and is not zero-length. 42 // Returns true if the given file path exists and is not zero-length.
43 bool ValidateFilePath(const base::FilePath& path) { 43 bool ValidateFilePath(const base::FilePath& path) {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 // Add @@extension_id reserved message here, so it's available to 432 // Add @@extension_id reserved message here, so it's available to
433 // non-localized extensions too. 433 // non-localized extensions too.
434 return_value->insert( 434 return_value->insert(
435 std::make_pair(MessageBundle::kExtensionIdKey, extension_id)); 435 std::make_pair(MessageBundle::kExtensionIdKey, extension_id));
436 436
437 return return_value; 437 return return_value;
438 } 438 }
439 439
440 } // namespace file_util 440 } // namespace file_util
441 } // namespace extensions 441 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698