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

Unified Diff: chrome/browser/bookmarks/bookmark_model.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 | « chrome/browser/bookmarks/bookmark_model.h ('k') | chrome/browser/browser_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_model.cc
diff --git a/chrome/browser/bookmarks/bookmark_model.cc b/chrome/browser/bookmarks/bookmark_model.cc
index 9a58709e66ee98f4d63dd95825b7f7da04f323cc..48f313c2e8f4601b38726e76e56f63b33a3157d5 100644
--- a/chrome/browser/bookmarks/bookmark_model.cc
+++ b/chrome/browser/bookmarks/bookmark_model.cc
@@ -294,7 +294,7 @@ void BookmarkModel::SetURL(const BookmarkNode* node, const GURL& url) {
CancelPendingFavIconLoadRequests(AsMutable(node));
{
- AutoLock url_lock(url_lock_);
+ base::AutoLock url_lock(url_lock_);
NodesOrderedByURLSet::iterator i = nodes_ordered_by_url_set_.find(
AsMutable(node));
DCHECK(i != nodes_ordered_by_url_set_.end());
@@ -321,7 +321,7 @@ bool BookmarkModel::IsLoaded() {
void BookmarkModel::GetNodesByURL(const GURL& url,
std::vector<const BookmarkNode*>* nodes) {
- AutoLock url_lock(url_lock_);
+ base::AutoLock url_lock(url_lock_);
BookmarkNode tmp_node(url);
NodesOrderedByURLSet::iterator i = nodes_ordered_by_url_set_.find(&tmp_node);
while (i != nodes_ordered_by_url_set_.end() && (*i)->GetURL() == url) {
@@ -342,7 +342,7 @@ const BookmarkNode* BookmarkModel::GetMostRecentlyAddedNodeForURL(
}
void BookmarkModel::GetBookmarks(std::vector<GURL>* urls) {
- AutoLock url_lock(url_lock_);
+ base::AutoLock url_lock(url_lock_);
const GURL* last_url = NULL;
for (NodesOrderedByURLSet::iterator i = nodes_ordered_by_url_set_.begin();
i != nodes_ordered_by_url_set_.end(); ++i) {
@@ -355,12 +355,12 @@ void BookmarkModel::GetBookmarks(std::vector<GURL>* urls) {
}
bool BookmarkModel::HasBookmarks() {
- AutoLock url_lock(url_lock_);
+ base::AutoLock url_lock(url_lock_);
return !nodes_ordered_by_url_set_.empty();
}
bool BookmarkModel::IsBookmarked(const GURL& url) {
- AutoLock url_lock(url_lock_);
+ base::AutoLock url_lock(url_lock_);
return IsBookmarkedNoLock(url);
}
@@ -417,7 +417,7 @@ const BookmarkNode* BookmarkModel::AddURLWithCreationTime(
{
// Only hold the lock for the duration of the insert.
- AutoLock url_lock(url_lock_);
+ base::AutoLock url_lock(url_lock_);
nodes_ordered_by_url_set_.insert(new_node);
}
@@ -572,7 +572,7 @@ void BookmarkModel::DoneLoading(
root_.Add(1, other_node_);
{
- AutoLock url_lock(url_lock_);
+ base::AutoLock url_lock(url_lock_);
// Update nodes_ordered_by_url_set_ from the nodes.
PopulateNodesByURL(&root_);
}
@@ -600,7 +600,7 @@ void BookmarkModel::RemoveAndDeleteNode(BookmarkNode* delete_me) {
parent->Remove(index);
history::URLsStarredDetails details(false);
{
- AutoLock url_lock(url_lock_);
+ base::AutoLock url_lock(url_lock_);
RemoveNode(node.get(), &details.changed_urls);
// RemoveNode adds an entry to changed_urls for each node of type URL. As we
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.h ('k') | chrome/browser/browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698