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

Unified Diff: chrome/browser/history/history_service.cc

Issue 322113002: Move HistoryService::NotifyProfileError to HistoryClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 6 years, 6 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/history/chrome_history_client.cc ('k') | components/history/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_service.cc
diff --git a/chrome/browser/history/history_service.cc b/chrome/browser/history/history_service.cc
index a4513e1d6037cedcced8d0df6d9adf32428c5d04..bf1778836799a2cd2f19bf96dbc98161d280bf13 100644
--- a/chrome/browser/history/history_service.cc
+++ b/chrome/browser/history/history_service.cc
@@ -46,7 +46,6 @@
#include "chrome/browser/history/web_history_service.h"
#include "chrome/browser/history/web_history_service_factory.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/profile_error_dialog.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/importer/imported_favicon_usage.h"
@@ -1034,10 +1033,8 @@ void HistoryService::SetInMemoryBackend(
void HistoryService::NotifyProfileError(sql::InitStatus init_status) {
DCHECK(thread_checker_.CalledOnValidThread());
- ShowProfileErrorDialog(
- PROFILE_ERROR_HISTORY,
- (init_status == sql::INIT_FAILURE) ?
- IDS_COULDNT_OPEN_PROFILE_ERROR : IDS_PROFILE_TOO_NEW_ERROR);
+ if (history_client_)
+ history_client_->NotifyProfileError(init_status);
}
void HistoryService::DeleteURL(const GURL& url) {
« no previous file with comments | « chrome/browser/history/chrome_history_client.cc ('k') | components/history/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698