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

Side by Side Diff: chrome/browser/webdata/web_apps_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_apps_table.h" 5 #include "chrome/browser/webdata/web_apps_table.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/history/history_database.h" 8 #include "chrome/browser/history/history_database.h"
9 #include "chrome/browser/webdata/web_database.h" 9 #include "chrome/browser/webdata/web_database.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 23 matching lines...) Expand all
34 WebDatabaseTable::Init(db, meta_table); 34 WebDatabaseTable::Init(db, meta_table);
35 35
36 return (InitWebAppIconsTable() && InitWebAppsTable()); 36 return (InitWebAppIconsTable() && InitWebAppsTable());
37 } 37 }
38 38
39 bool WebAppsTable::IsSyncable() { 39 bool WebAppsTable::IsSyncable() {
40 return true; 40 return true;
41 } 41 }
42 42
43 bool WebAppsTable::MigrateToVersion(int version, 43 bool WebAppsTable::MigrateToVersion(int version,
44 const std::string& app_locale,
45 bool* update_compatible_version) { 44 bool* update_compatible_version) {
46 return true; 45 return true;
47 } 46 }
48 47
49 bool WebAppsTable::InitWebAppIconsTable() { 48 bool WebAppsTable::InitWebAppIconsTable() {
50 if (!db_->DoesTableExist("web_app_icons")) { 49 if (!db_->DoesTableExist("web_app_icons")) {
51 if (!db_->Execute("CREATE TABLE web_app_icons (" 50 if (!db_->Execute("CREATE TABLE web_app_icons ("
52 "url LONGVARCHAR," 51 "url LONGVARCHAR,"
53 "width int," 52 "width int,"
54 "height int," 53 "height int,"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 139
141 if (!delete_s.Run()) 140 if (!delete_s.Run())
142 return false; 141 return false;
143 142
144 sql::Statement delete_s2(db_->GetUniqueStatement( 143 sql::Statement delete_s2(db_->GetUniqueStatement(
145 "DELETE FROM web_apps WHERE url = ?")); 144 "DELETE FROM web_apps WHERE url = ?"));
146 delete_s2.BindString(0, history::HistoryDatabase::GURLToDatabaseURL(url)); 145 delete_s2.BindString(0, history::HistoryDatabase::GURLToDatabaseURL(url));
147 146
148 return delete_s2.Run(); 147 return delete_s2.Run();
149 } 148 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_apps_table.h ('k') | chrome/browser/webdata/web_apps_table_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698