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

Side by Side Diff: chrome/browser/webdata/web_intents_table.cc

Issue 13191007: Pass app_locale directly to AutofillTable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Chrome frame tests fix Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/webdata/web_intents_table.h" 5 #include "chrome/browser/webdata/web_intents_table.h"
6 #include <string> 6 #include <string>
7 7
8 #include "base/i18n/case_conversion.h" 8 #include "base/i18n/case_conversion.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 return true; 85 return true;
86 } 86 }
87 87
88 // TODO(jhawkins): Figure out Sync story. 88 // TODO(jhawkins): Figure out Sync story.
89 bool WebIntentsTable::IsSyncable() { 89 bool WebIntentsTable::IsSyncable() {
90 return false; 90 return false;
91 } 91 }
92 92
93 bool WebIntentsTable::MigrateToVersion(int version, 93 bool WebIntentsTable::MigrateToVersion(int version,
94 const std::string& app_locale,
95 bool* update_compatible_version) { 94 bool* update_compatible_version) {
96 if (version == 46) { 95 if (version == 46) {
97 *update_compatible_version = true; 96 *update_compatible_version = true;
98 return MigrateToVersion46AddSchemeColumn(); 97 return MigrateToVersion46AddSchemeColumn();
99 } 98 }
100 99
101 return true; 100 return true;
102 } 101 }
103 102
104 // Updates the table by way of renaming the old tables, rerunning 103 // Updates the table by way of renaming the old tables, rerunning
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 return false; 147 return false;
149 } 148 }
150 149
151 if (!db_->Execute("DROP table old_web_intents_defaults")) { 150 if (!db_->Execute("DROP table old_web_intents_defaults")) {
152 DLOG(WARNING) << "Could not drop backup web_intents_defaults table."; 151 DLOG(WARNING) << "Could not drop backup web_intents_defaults table.";
153 return false; 152 return false;
154 } 153 }
155 154
156 return true; 155 return true;
157 } 156 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_intents_table.h ('k') | chrome_frame/test/delete_chrome_history_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698