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

Unified Diff: chrome/browser/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/undo/bookmark_undo_utils.h ('k') | chrome/browser/undo/undo_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/undo/bookmark_undo_utils.cc
diff --git a/chrome/browser/undo/bookmark_undo_utils.cc b/chrome/browser/undo/bookmark_undo_utils.cc
deleted file mode 100644
index 48dfeaca579270b28ba2a43f231f1396bfb268e8..0000000000000000000000000000000000000000
--- a/chrome/browser/undo/bookmark_undo_utils.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/undo/bookmark_undo_utils.h"
-
-#include "chrome/browser/undo/bookmark_undo_service.h"
-#include "chrome/browser/undo/undo_manager.h"
-
-// ScopedSuspendBookmarkUndo --------------------------------------------------
-
-ScopedSuspendBookmarkUndo::ScopedSuspendBookmarkUndo(
- BookmarkUndoService* bookmark_undo_service)
- : undo_manager_(bookmark_undo_service
- ? bookmark_undo_service->undo_manager()
- : nullptr) {
- if (undo_manager_)
- undo_manager_->SuspendUndoTracking();
-}
-
-ScopedSuspendBookmarkUndo::~ScopedSuspendBookmarkUndo() {
- if (undo_manager_)
- undo_manager_->ResumeUndoTracking();
-}
« no previous file with comments | « chrome/browser/undo/bookmark_undo_utils.h ('k') | chrome/browser/undo/undo_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698