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

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

Issue 2500573003: Some easy linked_ptr removal from extensions/common/ (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « extensions/common/message_bundle.h ('k') | extensions/common/message_bundle_unittest.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 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/message_bundle.h" 5 #include "extensions/common/message_bundle.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "base/memory/linked_ptr.h"
15 #include "base/stl_util.h" 14 #include "base/stl_util.h"
16 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
17 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
18 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
19 #include "base/values.h" 18 #include "base/values.h"
20 #include "extensions/common/error_utils.h" 19 #include "extensions/common/error_utils.h"
21 #include "extensions/common/extension_l10n_util.h" 20 #include "extensions/common/extension_l10n_util.h"
22 #include "extensions/common/manifest_constants.h" 21 #include "extensions/common/manifest_constants.h"
23 22
24 namespace extensions { 23 namespace extensions {
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 return &(it->second); 336 return &(it->second);
338 337
339 return NULL; 338 return NULL;
340 } 339 }
341 340
342 void EraseL10nMessagesMap(const std::string& extension_id) { 341 void EraseL10nMessagesMap(const std::string& extension_id) {
343 g_extension_to_messages_map.Get().messages_map.erase(extension_id); 342 g_extension_to_messages_map.Get().messages_map.erase(extension_id);
344 } 343 }
345 344
346 } // namespace extensions 345 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/message_bundle.h ('k') | extensions/common/message_bundle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698