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

Side by Side Diff: components/offline_pages/offline_page_bookmark_observer.cc

Issue 2185973003: [Offline Pages] Delete associated page along with bookmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unintended changes. Created 4 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/offline_pages/offline_page_bookmark_observer.h"
6
7 #include "components/bookmarks/browser/base_bookmark_model_observer.h"
8 #include "components/bookmarks/browser/bookmark_node.h"
9 #include "components/offline_pages/offline_page_model.h"
10
11 namespace offline_pages {
12
13 OfflinePageBookmarkObserver::OfflinePageBookmarkObserver(
14 OfflinePageModel* model)
15 : model_(model) {}
16
17 void OfflinePageBookmarkObserver::BookmarkModelChanged() {}
18
19 void OfflinePageBookmarkObserver::BookmarkNodeRemoved(
20 bookmarks::BookmarkModel* model,
21 const bookmarks::BookmarkNode* parent,
22 int old_index,
23 const bookmarks::BookmarkNode* node,
24 const std::set<GURL>& removed_urls) {
25 model_->ExpireRemovedBookmarkPage(node);
26 }
27
28 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698