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

Side by Side Diff: chrome/browser/undo/bookmark_undo_service.cc

Issue 469993006: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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
« no previous file with comments | « chrome/browser/ui/cocoa/ui_localizer.mm ('k') | chrome/browser/undo/undo_manager.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/undo/bookmark_undo_service.h" 5 #include "chrome/browser/undo/bookmark_undo_service.h"
6 6
7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/undo/bookmark_renumber_observer.h" 9 #include "chrome/browser/undo/bookmark_renumber_observer.h"
10 #include "chrome/browser/undo/bookmark_undo_service_factory.h" 10 #include "chrome/browser/undo/bookmark_undo_service_factory.h"
11 #include "chrome/browser/undo/undo_operation.h" 11 #include "chrome/browser/undo/undo_operation.h"
12 #include "chrome/grit/generated_resources.h"
12 #include "components/bookmarks/browser/bookmark_model.h" 13 #include "components/bookmarks/browser/bookmark_model.h"
13 #include "components/bookmarks/browser/bookmark_node_data.h" 14 #include "components/bookmarks/browser/bookmark_node_data.h"
14 #include "components/bookmarks/browser/bookmark_utils.h" 15 #include "components/bookmarks/browser/bookmark_utils.h"
15 #include "components/bookmarks/browser/scoped_group_bookmark_actions.h" 16 #include "components/bookmarks/browser/scoped_group_bookmark_actions.h"
16 #include "grit/generated_resources.h"
17 17
18 using bookmarks::BookmarkNodeData; 18 using bookmarks::BookmarkNodeData;
19 19
20 namespace { 20 namespace {
21 21
22 // BookmarkUndoOperation ------------------------------------------------------ 22 // BookmarkUndoOperation ------------------------------------------------------
23 23
24 // Base class for all bookmark related UndoOperations that facilitates access to 24 // Base class for all bookmark related UndoOperations that facilitates access to
25 // the BookmarkUndoService. 25 // the BookmarkUndoService.
26 class BookmarkUndoOperation : public UndoOperation, 26 class BookmarkUndoOperation : public UndoOperation,
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 476
477 void BookmarkUndoService::OnBookmarkRenumbered(int64 old_id, int64 new_id) { 477 void BookmarkUndoService::OnBookmarkRenumbered(int64 old_id, int64 new_id) {
478 std::vector<UndoOperation*> all_operations = 478 std::vector<UndoOperation*> all_operations =
479 undo_manager()->GetAllUndoOperations(); 479 undo_manager()->GetAllUndoOperations();
480 for (std::vector<UndoOperation*>::iterator it = all_operations.begin(); 480 for (std::vector<UndoOperation*>::iterator it = all_operations.begin();
481 it != all_operations.end(); ++it) { 481 it != all_operations.end(); ++it) {
482 static_cast<BookmarkUndoOperation*>(*it)->OnBookmarkRenumbered(old_id, 482 static_cast<BookmarkUndoOperation*>(*it)->OnBookmarkRenumbered(old_id,
483 new_id); 483 new_id);
484 } 484 }
485 } 485 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/ui_localizer.mm ('k') | chrome/browser/undo/undo_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698