| 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 <string> | 5 #include <string> |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "chrome/browser/extensions/activity_database.h" | 8 #include "chrome/browser/extensions/activity_database.h" |
| 9 #include "chrome/browser/history/url_database.h" | 9 #include "chrome/browser/history/url_database.h" |
| 10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 bool ActivityDatabase::Raze() { | 108 bool ActivityDatabase::Raze() { |
| 109 return db_.Raze(); | 109 return db_.Raze(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 void ActivityDatabase::Close() { | 112 void ActivityDatabase::Close() { |
| 113 db_.Close(); | 113 db_.Close(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 void ActivityDatabase::KillDatabase() { | 116 void ActivityDatabase::KillDatabase() { |
| 117 db_.RollbackTransaction(); | 117 db_.RazeAndClose(); |
| 118 db_.Raze(); | |
| 119 db_.Close(); | |
| 120 } | 118 } |
| 121 | 119 |
| 122 } // namespace extensions | 120 } // namespace extensions |
| OLD | NEW |