| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/extension_l10n_util.h" | 5 #include "extensions/common/extension_l10n_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 #include <set> | 10 #include <set> |
| 9 #include <string> | 11 #include <string> |
| 10 #include <vector> | 12 #include <vector> |
| 11 | 13 |
| 12 #include "base/files/file_enumerator.h" | 14 #include "base/files/file_enumerator.h" |
| 13 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
| 14 #include "base/json/json_file_value_serializer.h" | 16 #include "base/json/json_file_value_serializer.h" |
| 15 #include "base/logging.h" | 17 #include "base/logging.h" |
| 16 #include "base/memory/linked_ptr.h" | 18 #include "base/memory/linked_ptr.h" |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 ScopedLocaleForTest::ScopedLocaleForTest(const std::string& locale) | 458 ScopedLocaleForTest::ScopedLocaleForTest(const std::string& locale) |
| 457 : locale_(extension_l10n_util::CurrentLocaleOrDefault()) { | 459 : locale_(extension_l10n_util::CurrentLocaleOrDefault()) { |
| 458 extension_l10n_util::SetProcessLocale(locale); | 460 extension_l10n_util::SetProcessLocale(locale); |
| 459 } | 461 } |
| 460 | 462 |
| 461 ScopedLocaleForTest::~ScopedLocaleForTest() { | 463 ScopedLocaleForTest::~ScopedLocaleForTest() { |
| 462 extension_l10n_util::SetProcessLocale(locale_); | 464 extension_l10n_util::SetProcessLocale(locale_); |
| 463 } | 465 } |
| 464 | 466 |
| 465 } // namespace extension_l10n_util | 467 } // namespace extension_l10n_util |
| OLD | NEW |