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

Side by Side Diff: chrome/browser/extensions/activity_database.cc

Issue 12096073: Implement sql::Connection::RazeAndClose(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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) 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698