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

Unified Diff: chrome/test/testing_profile.h

Issue 1912: Renames BoomarkBarModel to BookmarkModel. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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
Index: chrome/test/testing_profile.h
===================================================================
--- chrome/test/testing_profile.h (revision 1988)
+++ chrome/test/testing_profile.h (working copy)
@@ -8,7 +8,7 @@
#include "base/base_paths.h"
#include "base/path_service.h"
#include "base/file_util.h"
-#include "chrome/browser/bookmarks/bookmark_bar_model.h"
+#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/browser_prefs.h"
#include "chrome/browser/history/history.h"
#include "chrome/browser/profile.h"
@@ -30,14 +30,14 @@
// NULL. If |delete_file| is true, the bookmarks file is deleted first, then
// the model is created. As TestingProfile deletes the directory containing
// the files used by HistoryService, the boolean only matters if you're
- // recreating the BookmarkBarModel.
+ // recreating the BookmarkModel.
//
// NOTE: this does not block until the bookmarks are loaded. For that use
// BlockUntilBookmarkModelLoaded.
- void CreateBookmarkBarModel(bool delete_file);
+ void CreateBookmarkModel(bool delete_file);
- // Blocks until the BookmarkBarModel finishes loaded. This is NOT invoked
- // from CreateBookmarkBarModel.
+ // Blocks until the BookmarkModel finishes loaded. This is NOT invoked from
+ // CreateBookmarkModel.
void BlockUntilBookmarkModelLoaded();
// Creates a TemplateURLModel. If not invoked the TemplateURLModel is NULL.
@@ -130,10 +130,7 @@
}
virtual void MergeResourceBoolean(int message_id, bool* output_value) {
}
- virtual bool HasBookmarkBarModel() {
- return (bookmark_bar_model_.get() != NULL);
- }
- virtual BookmarkBarModel* GetBookmarkBarModel() {
+ virtual BookmarkModel* GetBookmarkModel() {
return bookmark_bar_model_.get();
}
virtual bool Profile::IsSameProfile(Profile *p) {
@@ -174,8 +171,8 @@
// The history service. Only created if CreateHistoryService is invoked.
scoped_refptr<HistoryService> history_service_;
- // The BookmarkBarModel. Only created if CreateBookmarkBarModel is invoked.
- scoped_ptr<BookmarkBarModel> bookmark_bar_model_;
+ // The BookmarkModel. Only created if CreateBookmarkModel is invoked.
+ scoped_ptr<BookmarkModel> bookmark_bar_model_;
// The TemplateURLFetcher. Only created if CreateTemplateURLModel is invoked.
scoped_ptr<TemplateURLModel> template_url_model_;

Powered by Google App Engine
This is Rietveld 408576698