summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/toolbar
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 16:41:17 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 16:41:17 +0000
commitc63b22287e846e51c409ee4600207fafcc10022e (patch)
treec0729a0d73249c98795c138d223c614d346fe691 /chrome/browser/ui/toolbar
parent1f7a8052898f2163b152ef39802b43b5af4b4e0c (diff)
downloadchromium_src-c63b22287e846e51c409ee4600207fafcc10022e.zip
chromium_src-c63b22287e846e51c409ee4600207fafcc10022e.tar.gz
chromium_src-c63b22287e846e51c409ee4600207fafcc10022e.tar.bz2
Add a dcheck to make sure that RenderProcessHost::AllHostsIterator is called on the UI thread.
Review URL: http://codereview.chromium.org/6720051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80795 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/toolbar')
-rw-r--r--chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc b/chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc
index 93a284c..f7dbd76 100644
--- a/chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc
+++ b/chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -54,6 +54,10 @@ class FaviconDelegate : public ui::MenuModelDelegate {
class BackFwdMenuModelTest : public RenderViewHostTestHarness {
public:
+ BackFwdMenuModelTest()
+ : ui_thread_(BrowserThread::UI, &message_loop_) {
+ }
+
void ValidateModel(BackForwardMenuModel* model, int history_items,
int chapter_stops) {
int h = std::min(BackForwardMenuModel::kMaxHistoryItems, history_items);
@@ -94,6 +98,8 @@ class BackFwdMenuModelTest : public RenderViewHostTestHarness {
controller().GoForward();
contents()->CommitPendingNavigation();
}
+
+ BrowserThread ui_thread_;
};
TEST_F(BackFwdMenuModelTest, BasicCase) {