summaryrefslogtreecommitdiffstats
path: root/ui/message_center
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-19 19:34:00 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-19 19:34:00 +0000
commit166f2ed8f748b4b910db4b20b7f5d35ef41e209c (patch)
treec9ab93eac521aee1577db71616205137339bf381 /ui/message_center
parent030a4809dc6fbb95753fb11faa99bc07c8eb1f6f (diff)
downloadchromium_src-166f2ed8f748b4b910db4b20b7f5d35ef41e209c.zip
chromium_src-166f2ed8f748b4b910db4b20b7f5d35ef41e209c.tar.gz
chromium_src-166f2ed8f748b4b910db4b20b7f5d35ef41e209c.tar.bz2
MessageLoop(TYPE_UI) -> MessageLoopForUI
Converts creation of MessageLoopForUI from MessageLoop(TYPE_UI) to MessageLoopForUI. This is a step in the direction of moving type out of MessageLoop. BUG=none TEST=none R=darin@chromium.org Review URL: https://codereview.chromium.org/108713004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241917 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/message_center')
-rw-r--r--ui/message_center/cocoa/popup_collection_unittest.mm5
-rw-r--r--ui/message_center/cocoa/tray_view_controller_unittest.mm5
2 files changed, 4 insertions, 6 deletions
diff --git a/ui/message_center/cocoa/popup_collection_unittest.mm b/ui/message_center/cocoa/popup_collection_unittest.mm
index 4a853da..8ea2ff1 100644
--- a/ui/message_center/cocoa/popup_collection_unittest.mm
+++ b/ui/message_center/cocoa/popup_collection_unittest.mm
@@ -21,8 +21,7 @@ namespace message_center {
class PopupCollectionTest : public ui::CocoaTest {
public:
- PopupCollectionTest()
- : message_loop_(base::MessageLoop::TYPE_UI) {
+ PopupCollectionTest() {
message_center::MessageCenter::Initialize();
center_ = message_center::MessageCenter::Get();
collection_.reset(
@@ -109,7 +108,7 @@ class PopupCollectionTest : public ui::CocoaTest {
nested_run_loop_.reset();
}
- base::MessageLoop message_loop_;
+ base::MessageLoopForUI message_loop_;
scoped_ptr<base::RunLoop> nested_run_loop_;
message_center::MessageCenter* center_;
base::scoped_nsobject<MCPopupCollection> collection_;
diff --git a/ui/message_center/cocoa/tray_view_controller_unittest.mm b/ui/message_center/cocoa/tray_view_controller_unittest.mm
index fe2399d..c3dd79a 100644
--- a/ui/message_center/cocoa/tray_view_controller_unittest.mm
+++ b/ui/message_center/cocoa/tray_view_controller_unittest.mm
@@ -21,8 +21,7 @@ namespace message_center {
class TrayViewControllerTest : public ui::CocoaTest {
public:
TrayViewControllerTest()
- : center_(NULL),
- message_loop_(base::MessageLoop::TYPE_UI) {
+ : center_(NULL) {
}
virtual void SetUp() OVERRIDE {
@@ -61,7 +60,7 @@ class TrayViewControllerTest : public ui::CocoaTest {
message_center::MessageCenter* center_; // Weak, global.
- base::MessageLoop message_loop_;
+ base::MessageLoopForUI message_loop_;
scoped_ptr<base::RunLoop> nested_run_loop_;
base::scoped_nsobject<MCTrayViewController> tray_;
};