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

Unified Diff: chrome/browser/chromeos/login/screen_locker_browsertest.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: chrome/browser/chromeos/login/screen_locker_browsertest.cc
===================================================================
--- chrome/browser/chromeos/login/screen_locker_browsertest.cc (revision 106380)
+++ chrome/browser/chromeos/login/screen_locker_browsertest.cc (working copy)
@@ -19,7 +19,7 @@
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/ui_test_utils.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "views/controls/textfield/textfield.h"
@@ -35,7 +35,7 @@
running_(false) {
registrar_.Add(this,
chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
handler_id_ = g_signal_connect(
G_OBJECT(browser_->window()->GetNativeHandle()),
"window-state-event",
@@ -118,7 +118,7 @@
tester->EmulateWindowManagerReady();
ui_test_utils::WindowedNotificationObserver lock_state_observer(
chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
if (!chromeos::ScreenLocker::GetTester()->IsLocked())
lock_state_observer.Wait();
EXPECT_TRUE(tester->IsLocked());
@@ -142,7 +142,7 @@
tester->EmulateWindowManagerReady();
ui_test_utils::WindowedNotificationObserver lock_state_observer(
chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
if (!tester->IsLocked())
lock_state_observer.Wait();
EXPECT_TRUE(tester->IsLocked());
@@ -188,7 +188,7 @@
tester->EmulateWindowManagerReady();
ui_test_utils::WindowedNotificationObserver lock_state_observer(
chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
if (!chromeos::ScreenLocker::GetTester()->IsLocked())
lock_state_observer.Wait();
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker.cc ('k') | chrome/browser/chromeos/login/session_manager_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698