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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 bool ActivityDatabase::Raze() { | 109 bool ActivityDatabase::Raze() { |
110 return db_.Raze(); | 110 return db_.Raze(); |
111 } | 111 } |
112 | 112 |
113 void ActivityDatabase::Close() { | 113 void ActivityDatabase::Close() { |
114 db_.Close(); | 114 db_.Close(); |
115 } | 115 } |
116 | 116 |
117 void ActivityDatabase::KillDatabase() { | 117 void ActivityDatabase::KillDatabase() { |
118 db_.RollbackTransaction(); | 118 db_.RazeAndClose(); |
119 db_.Raze(); | |
120 db_.Close(); | |
121 } | 119 } |
122 | 120 |
123 } // namespace extensions | 121 } // namespace extensions |
124 | |
OLD | NEW |