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

Side by Side Diff: chrome/browser/history/chrome_history_client.cc

Issue 1269773002: Cleanup VersionInfo after componentization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « chrome/browser/history/chrome_history_backend_client.cc ('k') | chrome/browser/io_thread.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 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/history/chrome_history_client.h" 5 #include "chrome/browser/history/chrome_history_client.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 "chrome/browser/history/chrome_history_backend_client.h" 10 #include "chrome/browser/history/chrome_history_backend_client.h"
11 #include "chrome/browser/history/history_utils.h" 11 #include "chrome/browser/history/history_utils.h"
12 #include "chrome/browser/ui/profile_error_dialog.h" 12 #include "chrome/browser/ui/profile_error_dialog.h"
13 #include "chrome/common/chrome_version_info.h"
14 #include "chrome/grit/chromium_strings.h" 13 #include "chrome/grit/chromium_strings.h"
15 #include "chrome/grit/generated_resources.h" 14 #include "chrome/grit/generated_resources.h"
16 #include "components/bookmarks/browser/bookmark_model.h" 15 #include "components/bookmarks/browser/bookmark_model.h"
17 #include "components/history/core/browser/history_service.h" 16 #include "components/history/core/browser/history_service.h"
18 17
19 ChromeHistoryClient::ChromeHistoryClient( 18 ChromeHistoryClient::ChromeHistoryClient(
20 bookmarks::BookmarkModel* bookmark_model) 19 bookmarks::BookmarkModel* bookmark_model)
21 : bookmark_model_(bookmark_model), is_bookmark_model_observer_(false) { 20 : bookmark_model_(bookmark_model), is_bookmark_model_observer_(false) {
22 } 21 }
23 22
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 90 }
92 91
93 void ChromeHistoryClient::BookmarkAllUserNodesRemoved( 92 void ChromeHistoryClient::BookmarkAllUserNodesRemoved(
94 bookmarks::BookmarkModel* bookmark_model, 93 bookmarks::BookmarkModel* bookmark_model,
95 const std::set<GURL>& removed_urls) { 94 const std::set<GURL>& removed_urls) {
96 BaseBookmarkModelObserver::BookmarkAllUserNodesRemoved(bookmark_model, 95 BaseBookmarkModelObserver::BookmarkAllUserNodesRemoved(bookmark_model,
97 removed_urls); 96 removed_urls);
98 DCHECK(!on_bookmarks_removed_.is_null()); 97 DCHECK(!on_bookmarks_removed_.is_null());
99 on_bookmarks_removed_.Run(removed_urls); 98 on_bookmarks_removed_.Run(removed_urls);
100 } 99 }
OLDNEW
« no previous file with comments | « chrome/browser/history/chrome_history_backend_client.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698