| OLD | NEW |
| 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 |
| 6 #include <string> | 7 #include <string> |
| 7 | 8 |
| 8 #include "base/i18n/case_conversion.h" | 9 #include "base/i18n/case_conversion.h" |
| 9 #include "base/logging.h" | 10 #include "base/logging.h" |
| 10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 11 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/webdata/web_database.h" | 13 #include "components/webdata/common/web_database.h" |
| 13 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 14 #include "net/base/mime_util.h" | 15 #include "net/base/mime_util.h" |
| 15 #include "sql/statement.h" | 16 #include "sql/statement.h" |
| 16 #include "third_party/sqlite/sqlite3.h" | 17 #include "third_party/sqlite/sqlite3.h" |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| 20 int table_key = 0; | 21 int table_key = 0; |
| 21 | 22 |
| 22 WebDatabaseTable::TypeKey GetKey() { | 23 WebDatabaseTable::TypeKey GetKey() { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 return false; | 148 return false; |
| 148 } | 149 } |
| 149 | 150 |
| 150 if (!db_->Execute("DROP table old_web_intents_defaults")) { | 151 if (!db_->Execute("DROP table old_web_intents_defaults")) { |
| 151 DLOG(WARNING) << "Could not drop backup web_intents_defaults table."; | 152 DLOG(WARNING) << "Could not drop backup web_intents_defaults table."; |
| 152 return false; | 153 return false; |
| 153 } | 154 } |
| 154 | 155 |
| 155 return true; | 156 return true; |
| 156 } | 157 } |
| OLD | NEW |