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

Unified Diff: chrome/test/base/ui_test_utils.cc

Issue 10079023: Move notifications used only in chrome/ out of content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: six! Created 8 years, 8 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/base/ui_test_utils.cc
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index e91d3551e364536edc7853f6c8f97b7ccb58cc2b..7bb1acb170975d4b042f8f36d8d664c0a83c7d50 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -342,7 +342,7 @@ void WaitForNavigations(NavigationController* controller,
void WaitForNewTab(Browser* browser) {
TestNotificationObserver observer;
- RegisterAndWait(&observer, content::NOTIFICATION_TAB_ADDED,
+ RegisterAndWait(&observer, chrome::NOTIFICATION_TAB_ADDED,
content::Source<content::WebContentsDelegate>(browser));
}
@@ -433,7 +433,7 @@ static void NavigateToURLWithDispositionBlockUntilNavigationsComplete(
}
WindowedNotificationObserver tab_added_observer(
- content::NOTIFICATION_TAB_ADDED,
+ chrome::NOTIFICATION_TAB_ADDED,
content::NotificationService::AllSources());
WindowedNotificationObserver auth_observer(
@@ -974,6 +974,11 @@ void WindowedNotificationObserver::Observe(
}
}
+WindowedTabAddedNotificationObserver::WindowedTabAddedNotificationObserver(
+ const content::NotificationSource& source)
+ : WindowedNotificationObserver(chrome::NOTIFICATION_TAB_ADDED, source) {
+}
+
TitleWatcher::TitleWatcher(WebContents* web_contents,
const string16& expected_title)
: web_contents_(web_contents),

Powered by Google App Engine
This is Rietveld 408576698