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

Side by Side Diff: content/browser/net/sqlite_persistent_cookie_store.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 "content/browser/net/sqlite_persistent_cookie_store.h" 5 #include "content/browser/net/sqlite_persistent_cookie_store.h"
6 6
7 #include <list> 7 #include <list>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 meta_table_.Reset(); 1062 meta_table_.Reset();
1063 db_.reset(); 1063 db_.reset();
1064 } 1064 }
1065 1065
1066 void SQLitePersistentCookieStore::Backend::DeleteSessionCookiesOnShutdown() { 1066 void SQLitePersistentCookieStore::Backend::DeleteSessionCookiesOnShutdown() {
1067 DCHECK(background_task_runner_->RunsTasksOnCurrentThread()); 1067 DCHECK(background_task_runner_->RunsTasksOnCurrentThread());
1068 1068
1069 if (!db_) 1069 if (!db_)
1070 return; 1070 return;
1071 1071
1072 if (!special_storage_policy_) 1072 if (!special_storage_policy_.get())
1073 return; 1073 return;
1074 1074
1075 sql::Statement del_smt(db_->GetCachedStatement( 1075 sql::Statement del_smt(db_->GetCachedStatement(
1076 SQL_FROM_HERE, "DELETE FROM cookies WHERE host_key=? AND secure=?")); 1076 SQL_FROM_HERE, "DELETE FROM cookies WHERE host_key=? AND secure=?"));
1077 if (!del_smt.is_valid()) { 1077 if (!del_smt.is_valid()) {
1078 LOG(WARNING) << "Unable to delete cookies on shutdown."; 1078 LOG(WARNING) << "Unable to delete cookies on shutdown.";
1079 return; 1079 return;
1080 } 1080 }
1081 1081
1082 sql::Transaction transaction(db_.get()); 1082 sql::Transaction transaction(db_.get());
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 1225
1226 const std::string cookie_priority_experiment_group = 1226 const std::string cookie_priority_experiment_group =
1227 base::FieldTrialList::FindFullName("CookieRetentionPriorityStudy"); 1227 base::FieldTrialList::FindFullName("CookieRetentionPriorityStudy");
1228 cookie_monster->SetPriorityAwareGarbageCollection( 1228 cookie_monster->SetPriorityAwareGarbageCollection(
1229 cookie_priority_experiment_group == "ExperimentOn"); 1229 cookie_priority_experiment_group == "ExperimentOn");
1230 1230
1231 return cookie_monster; 1231 return cookie_monster;
1232 } 1232 }
1233 1233
1234 } // namespace content 1234 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/throttling_resource_handler.cc ('k') | content/browser/net/view_http_cache_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698