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

Unified Diff: chrome/browser/extensions/activity_log.h

Issue 13949011: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/activity_log.h
diff --git a/chrome/browser/extensions/activity_log.h b/chrome/browser/extensions/activity_log.h
index eb4f0e5dc1dbb9fcc53bd310ca5b5919251ca92b..55c7b18be4793f072734253a909ef78b63bfa7b2 100644
--- a/chrome/browser/extensions/activity_log.h
+++ b/chrome/browser/extensions/activity_log.h
@@ -165,7 +165,7 @@ class ActivityLog : public ProfileKeyedService,
// separate thread.
template<typename DatabaseFunc>
void ScheduleAndForget(DatabaseFunc func) {
- if (db_.get())
+ if (db_)
BrowserThread::PostTask(BrowserThread::DB,
FROM_HERE,
base::Bind(func, db_.get()));
@@ -173,7 +173,7 @@ class ActivityLog : public ProfileKeyedService,
template<typename DatabaseFunc, typename ArgA>
void ScheduleAndForget(DatabaseFunc func, ArgA a) {
- if (db_.get())
+ if (db_)
BrowserThread::PostTask(BrowserThread::DB,
FROM_HERE,
base::Bind(func, db_.get(), a));
@@ -181,7 +181,7 @@ class ActivityLog : public ProfileKeyedService,
template<typename DatabaseFunc, typename ArgA, typename ArgB>
void ScheduleAndForget(DatabaseFunc func, ArgA a, ArgB b) {
- if (db_.get())
+ if (db_)
BrowserThread::PostTask(BrowserThread::DB,
FROM_HERE,
base::Bind(func, db_.get(), a, b));
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698