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

Side by Side Diff: components/undo/bookmark_undo_utils.cc

Issue 1090993003: Move undo files into //components/undo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@utils
Patch Set: Fix gn compilation Created 5 years, 8 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
« no previous file with comments | « components/undo/bookmark_undo_utils.h ('k') | components/undo/undo_manager.h » ('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 "chrome/browser/undo/bookmark_undo_utils.h" 5 #include "components/undo/bookmark_undo_utils.h"
6 6
7 #include "chrome/browser/undo/bookmark_undo_service.h" 7 #include "components/undo/bookmark_undo_service.h"
8 #include "chrome/browser/undo/undo_manager.h" 8 #include "components/undo/undo_manager.h"
9 9
10 // ScopedSuspendBookmarkUndo -------------------------------------------------- 10 // ScopedSuspendBookmarkUndo --------------------------------------------------
11 11
12 ScopedSuspendBookmarkUndo::ScopedSuspendBookmarkUndo( 12 ScopedSuspendBookmarkUndo::ScopedSuspendBookmarkUndo(
13 BookmarkUndoService* bookmark_undo_service) 13 BookmarkUndoService* bookmark_undo_service)
14 : undo_manager_(bookmark_undo_service 14 : undo_manager_(bookmark_undo_service
15 ? bookmark_undo_service->undo_manager() 15 ? bookmark_undo_service->undo_manager()
16 : nullptr) { 16 : nullptr) {
17 if (undo_manager_) 17 if (undo_manager_)
18 undo_manager_->SuspendUndoTracking(); 18 undo_manager_->SuspendUndoTracking();
19 } 19 }
20 20
21 ScopedSuspendBookmarkUndo::~ScopedSuspendBookmarkUndo() { 21 ScopedSuspendBookmarkUndo::~ScopedSuspendBookmarkUndo() {
22 if (undo_manager_) 22 if (undo_manager_)
23 undo_manager_->ResumeUndoTracking(); 23 undo_manager_->ResumeUndoTracking();
24 } 24 }
OLDNEW
« no previous file with comments | « components/undo/bookmark_undo_utils.h ('k') | components/undo/undo_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698