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

Unified Diff: app/resource_bundle_linux.cc

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/resource_bundle.cc ('k') | app/resource_bundle_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/resource_bundle_linux.cc
diff --git a/app/resource_bundle_linux.cc b/app/resource_bundle_linux.cc
index 18d994f70572deca5ad830cca9576ef1b647ff3c..cd3f9ec9d80e404f7cf164161f94fd5c03c7d57d 100644
--- a/app/resource_bundle_linux.cc
+++ b/app/resource_bundle_linux.cc
@@ -11,11 +11,11 @@
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/i18n/rtl.h"
-#include "base/lock.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/string_piece.h"
#include "base/string_util.h"
+#include "base/synchronization/lock.h"
#include "gfx/font.h"
#include "gfx/gtk_util.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -90,7 +90,7 @@ GdkPixbuf* ResourceBundle::GetPixbufImpl(int resource_id, bool rtl_enabled) {
// Check to see if we already have the pixbuf in the cache.
{
- AutoLock lock_scope(*lock_);
+ base::AutoLock lock_scope(*lock_);
GdkPixbufMap::const_iterator found = gdk_pixbufs_.find(key);
if (found != gdk_pixbufs_.end())
return found->second;
@@ -102,7 +102,7 @@ GdkPixbuf* ResourceBundle::GetPixbufImpl(int resource_id, bool rtl_enabled) {
// We loaded successfully. Cache the pixbuf.
if (pixbuf) {
- AutoLock lock_scope(*lock_);
+ base::AutoLock lock_scope(*lock_);
// Another thread raced us, and has already cached the pixbuf.
if (gdk_pixbufs_.count(key)) {
@@ -119,7 +119,7 @@ GdkPixbuf* ResourceBundle::GetPixbufImpl(int resource_id, bool rtl_enabled) {
LOG(WARNING) << "Unable to load GdkPixbuf with id " << resource_id;
NOTREACHED(); // Want to assert in debug mode.
- AutoLock lock_scope(*lock_); // Guard empty_bitmap initialization.
+ base::AutoLock lock_scope(*lock_); // Guard empty_bitmap initialization.
static GdkPixbuf* empty_bitmap = NULL;
if (!empty_bitmap) {
« no previous file with comments | « app/resource_bundle.cc ('k') | app/resource_bundle_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698