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

Side by Side Diff: chrome/test/testing_profile.cc

Issue 27262: Wires up sorting of bookmarks to the 'organize menu' in the bookmark... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/test/testing_profile.h" 5 #include "chrome/test/testing_profile.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/history/history_backend.h" 9 #include "chrome/browser/history/history_backend.h"
10 #include "chrome/common/chrome_constants.h" 10 #include "chrome/common/chrome_constants.h"
(...skipping 18 matching lines...) Expand all
29 BookmarkNode* new_parent, 29 BookmarkNode* new_parent,
30 int new_index) {} 30 int new_index) {}
31 virtual void BookmarkNodeAdded(BookmarkModel* model, 31 virtual void BookmarkNodeAdded(BookmarkModel* model,
32 BookmarkNode* parent, 32 BookmarkNode* parent,
33 int index) {} 33 int index) {}
34 virtual void BookmarkNodeRemoved(BookmarkModel* model, 34 virtual void BookmarkNodeRemoved(BookmarkModel* model,
35 BookmarkNode* parent, 35 BookmarkNode* parent,
36 int index) {} 36 int index) {}
37 virtual void BookmarkNodeChanged(BookmarkModel* model, 37 virtual void BookmarkNodeChanged(BookmarkModel* model,
38 BookmarkNode* node) {} 38 BookmarkNode* node) {}
39 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model,
40 BookmarkNode* node) {}
39 virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model, 41 virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model,
40 BookmarkNode* node) {} 42 BookmarkNode* node) {}
41 43
42 private: 44 private:
43 DISALLOW_COPY_AND_ASSIGN(BookmarkLoadObserver); 45 DISALLOW_COPY_AND_ASSIGN(BookmarkLoadObserver);
44 }; 46 };
45 47
46 } // namespace 48 } // namespace
47 49
48 TestingProfile::TestingProfile() 50 TestingProfile::TestingProfile()
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 BookmarkLoadObserver observer; 137 BookmarkLoadObserver observer;
136 bookmark_bar_model_->AddObserver(&observer); 138 bookmark_bar_model_->AddObserver(&observer);
137 MessageLoop::current()->Run(); 139 MessageLoop::current()->Run();
138 bookmark_bar_model_->RemoveObserver(&observer); 140 bookmark_bar_model_->RemoveObserver(&observer);
139 DCHECK(bookmark_bar_model_->IsLoaded()); 141 DCHECK(bookmark_bar_model_->IsLoaded());
140 } 142 }
141 143
142 void TestingProfile::CreateTemplateURLModel() { 144 void TestingProfile::CreateTemplateURLModel() {
143 template_url_model_.reset(new TemplateURLModel(this)); 145 template_url_model_.reset(new TemplateURLModel(this));
144 } 146 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698