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

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

Issue 7353026: Move app/sql/* files to sql/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 5 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 "app/sql/statement.h"
8 #include "base/logging.h" 7 #include "base/logging.h"
9 #include "chrome/browser/history/history_database.h" 8 #include "chrome/browser/history/history_database.h"
10 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "sql/statement.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
12 #include "ui/gfx/codec/png_codec.h" 12 #include "ui/gfx/codec/png_codec.h"
13 13
14 bool WebAppsTable::Init() { 14 bool WebAppsTable::Init() {
15 return (InitWebAppIconsTable() && InitWebAppsTable()); 15 return (InitWebAppIconsTable() && InitWebAppsTable());
16 } 16 }
17 17
18 bool WebAppsTable::IsSyncable() { 18 bool WebAppsTable::IsSyncable() {
19 return true; 19 return true;
20 } 20 }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 sql::Statement delete_s2(db_->GetUniqueStatement( 132 sql::Statement delete_s2(db_->GetUniqueStatement(
133 "DELETE FROM web_apps WHERE url = ?")); 133 "DELETE FROM web_apps WHERE url = ?"));
134 if (!delete_s2) { 134 if (!delete_s2) {
135 NOTREACHED() << "Statement prepare failed"; 135 NOTREACHED() << "Statement prepare failed";
136 return false; 136 return false;
137 } 137 }
138 delete_s2.BindString(0, history::HistoryDatabase::GURLToDatabaseURL(url)); 138 delete_s2.BindString(0, history::HistoryDatabase::GURLToDatabaseURL(url));
139 return delete_s2.Run(); 139 return delete_s2.Run();
140 } 140 }
141 141
OLDNEW
« no previous file with comments | « chrome/browser/webdata/token_service_table.cc ('k') | chrome/browser/webdata/web_data_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698