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

Side by Side Diff: chrome/browser/profiles/sql_init_error_message_ids.cc

Issue 2225333003: Recreate the WebData database on a catastrophic SQL error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo 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 "chrome/browser/profiles/sql_init_error_message_ids.h"
6
7 #include "chrome/grit/chromium_strings.h"
8 #include "chrome/grit/generated_resources.h"
9
10 int SqlInitStatusToMessageId(sql::InitStatus status) {
11 if (status == sql::INIT_OK_WITH_DATA_LOSS)
12 return IDS_OPEN_PROFILE_DATA_LOSS;
13
14 if (status == sql::INIT_FAILURE)
15 return IDS_COULDNT_OPEN_PROFILE_ERROR;
16
17 return IDS_PROFILE_TOO_NEW_ERROR;
18 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/sql_init_error_message_ids.h ('k') | chrome/browser/web_data_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698