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

Side by Side Diff: ios/chrome/browser/history/history_client_impl.cc

Issue 2107493002: Offer user to send feedback from profile error dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet more compile errors Created 4 years, 5 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/history/history_client_impl.h" 5 #include "ios/chrome/browser/history/history_client_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 on_bookmarks_removed_.Reset(); 53 on_bookmarks_removed_.Reset();
54 } 54 }
55 bookmark_model_->Shutdown(); 55 bookmark_model_->Shutdown();
56 } 56 }
57 } 57 }
58 58
59 bool HistoryClientImpl::CanAddURL(const GURL& url) { 59 bool HistoryClientImpl::CanAddURL(const GURL& url) {
60 return ios::CanAddURLToHistory(url); 60 return ios::CanAddURLToHistory(url);
61 } 61 }
62 62
63 void HistoryClientImpl::NotifyProfileError(sql::InitStatus init_status) { 63 void HistoryClientImpl::NotifyProfileError(
64 } 64 sql::InitStatus init_status,
65 const sql::DatabaseDiagnosticMap& diagnostics) {}
65 66
66 std::unique_ptr<history::HistoryBackendClient> 67 std::unique_ptr<history::HistoryBackendClient>
67 HistoryClientImpl::CreateBackendClient() { 68 HistoryClientImpl::CreateBackendClient() {
68 return base::WrapUnique(new HistoryBackendClientImpl(bookmark_model_)); 69 return base::WrapUnique(new HistoryBackendClientImpl(bookmark_model_));
69 } 70 }
70 71
71 void HistoryClientImpl::BookmarkModelChanged() { 72 void HistoryClientImpl::BookmarkModelChanged() {
72 } 73 }
73 74
74 void HistoryClientImpl::BookmarkNodeRemoved( 75 void HistoryClientImpl::BookmarkNodeRemoved(
75 bookmarks::BookmarkModel* model, 76 bookmarks::BookmarkModel* model,
76 const bookmarks::BookmarkNode* parent, 77 const bookmarks::BookmarkNode* parent,
77 int old_index, 78 int old_index,
78 const bookmarks::BookmarkNode* node, 79 const bookmarks::BookmarkNode* node,
79 const std::set<GURL>& no_longer_bookmarked) { 80 const std::set<GURL>& no_longer_bookmarked) {
80 if (!on_bookmarks_removed_.is_null()) 81 if (!on_bookmarks_removed_.is_null())
81 on_bookmarks_removed_.Run(no_longer_bookmarked); 82 on_bookmarks_removed_.Run(no_longer_bookmarked);
82 } 83 }
83 84
84 void HistoryClientImpl::BookmarkAllUserNodesRemoved( 85 void HistoryClientImpl::BookmarkAllUserNodesRemoved(
85 bookmarks::BookmarkModel* model, 86 bookmarks::BookmarkModel* model,
86 const std::set<GURL>& removed_urls) { 87 const std::set<GURL>& removed_urls) {
87 if (!on_bookmarks_removed_.is_null()) 88 if (!on_bookmarks_removed_.is_null())
88 on_bookmarks_removed_.Run(removed_urls); 89 on_bookmarks_removed_.Run(removed_urls);
89 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698