OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/extensions/extension_file_util.h" | 5 #include "chrome/browser/extensions/extension_file_util.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "chrome/browser/extensions/extension_prefs.h" | 12 #include "chrome/browser/extensions/extension_prefs.h" |
13 #include "chrome/browser/extensions/extension_l10n_util.h" | |
14 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
| 14 #include "chrome/common/extensions/extension_l10n_util.h" |
15 #include "chrome/common/extensions/extension_constants.h" | 15 #include "chrome/common/extensions/extension_constants.h" |
16 #include "chrome/common/json_value_serializer.h" | 16 #include "chrome/common/json_value_serializer.h" |
17 #include "net/base/file_stream.h" | 17 #include "net/base/file_stream.h" |
18 | 18 |
19 namespace extension_file_util { | 19 namespace extension_file_util { |
20 | 20 |
21 const char kInstallDirectoryName[] = "Extensions"; | 21 const char kInstallDirectoryName[] = "Extensions"; |
22 // TODO(mpcomplete): obsolete. remove after migration period. | 22 // TODO(mpcomplete): obsolete. remove after migration period. |
23 // http://code.google.com/p/chromium/issues/detail?id=19733 | 23 // http://code.google.com/p/chromium/issues/detail?id=19733 |
24 const char kCurrentVersionFileName[] = "Current Version"; | 24 const char kCurrentVersionFileName[] = "Current Version"; |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 "Filenames starting with \"_\" are reserved for use by the system.", | 401 "Filenames starting with \"_\" are reserved for use by the system.", |
402 filename.c_str()); | 402 filename.c_str()); |
403 return false; | 403 return false; |
404 } | 404 } |
405 } | 405 } |
406 | 406 |
407 return true; | 407 return true; |
408 } | 408 } |
409 | 409 |
410 } // namespace extension_file_util | 410 } // namespace extension_file_util |
OLD | NEW |