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

Unified Diff: chrome/browser/bookmarks/bookmark_storage.cc

Issue 11116015: bookmarks: Pass browser context pointer to BookmarkStorage instead of a pointer to Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « chrome/browser/bookmarks/bookmark_storage.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_storage.cc
diff --git a/chrome/browser/bookmarks/bookmark_storage.cc b/chrome/browser/bookmarks/bookmark_storage.cc
index 255be8e3f988fca048d80c356ccaf3f1a7eafa43..e44f2e9a519e94d68ec4a2e8ad5c5608c6e59ae1 100644
--- a/chrome/browser/bookmarks/bookmark_storage.cc
+++ b/chrome/browser/bookmarks/bookmark_storage.cc
@@ -8,15 +8,14 @@
#include "base/compiler_specific.h"
#include "base/file_path.h"
#include "base/file_util.h"
-#include "base/file_util_proxy.h"
#include "base/json/json_file_value_serializer.h"
#include "base/json/json_string_value_serializer.h"
#include "base/metrics/histogram.h"
#include "base/time.h"
#include "chrome/browser/bookmarks/bookmark_codec.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_constants.h"
+#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
using base::TimeTicks;
@@ -107,9 +106,10 @@ BookmarkLoadDetails::~BookmarkLoadDetails() {
// BookmarkStorage -------------------------------------------------------------
-BookmarkStorage::BookmarkStorage(Profile* profile, BookmarkModel* model)
+BookmarkStorage::BookmarkStorage(content::BrowserContext* context,
+ BookmarkModel* model)
: model_(model),
- writer_(profile->GetPath().Append(chrome::kBookmarksFileName),
+ writer_(context->GetPath().Append(chrome::kBookmarksFileName),
BrowserThread::GetMessageLoopProxyForThread(
BrowserThread::FILE)) {
writer_.set_commit_interval(base::TimeDelta::FromMilliseconds(kSaveDelayMS));
« no previous file with comments | « chrome/browser/bookmarks/bookmark_storage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698