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

Side by Side Diff: chrome/browser/resources_util.cc

Issue 16667019: Rename base/hash_tables to base/containers/hash_tables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 (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/browser/resources_util.h" 5 #include "chrome/browser/resources_util.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "grit/theme_resources_map.h" 11 #include "grit/theme_resources_map.h"
12 #include "grit/ui_resources_map.h" 12 #include "grit/ui_resources_map.h"
13 13
14 namespace { 14 namespace {
15 15
16 // A wrapper class that holds a hash_map between resource strings and resource 16 // A wrapper class that holds a hash_map between resource strings and resource
17 // ids. This is done so we can use base::LazyInstance which takes care of 17 // ids. This is done so we can use base::LazyInstance which takes care of
18 // thread safety in initializing the hash_map for us. 18 // thread safety in initializing the hash_map for us.
19 class ThemeMap { 19 class ThemeMap {
(...skipping 18 matching lines...) Expand all
38 StringIntMap id_map_; 38 StringIntMap id_map_;
39 }; 39 };
40 40
41 static base::LazyInstance<ThemeMap> g_theme_ids = LAZY_INSTANCE_INITIALIZER; 41 static base::LazyInstance<ThemeMap> g_theme_ids = LAZY_INSTANCE_INITIALIZER;
42 42
43 } // namespace 43 } // namespace
44 44
45 int ResourcesUtil::GetThemeResourceId(const std::string& resource_name) { 45 int ResourcesUtil::GetThemeResourceId(const std::string& resource_name) {
46 return g_theme_ids.Get().GetId(resource_name); 46 return g_theme_ids.Get().GetId(resource_name);
47 } 47 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/storage_partition_descriptor.h ('k') | chrome/browser/safe_browsing/browser_feature_extractor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698