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

Unified Diff: chrome/browser/prerender/prerender_browsertest.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « chrome/browser/prefs/pref_set_observer_unittest.cc ('k') | chrome/browser/prerender/prerender_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_browsertest.cc
===================================================================
--- chrome/browser/prerender/prerender_browsertest.cc (revision 91968)
+++ chrome/browser/prerender/prerender_browsertest.cc (working copy)
@@ -22,6 +22,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
@@ -185,7 +186,7 @@
// subsequently shown.
notification_registrar().Add(
this,
- NotificationType::RENDER_WIDGET_VISIBILITY_CHANGED,
+ content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
Source<RenderWidgetHost>(new_render_view_host));
new_render_view_host_ = new_render_view_host;
@@ -193,11 +194,11 @@
PrerenderContents::OnRenderViewHostCreated(new_render_view_host);
}
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE {
- if (type.value ==
- NotificationType::RENDER_WIDGET_VISIBILITY_CHANGED) {
+ if (type ==
+ content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED) {
EXPECT_EQ(new_render_view_host_, Source<RenderWidgetHost>(source).ptr());
bool is_visible = *Details<bool>(details).ptr();
@@ -1460,7 +1461,7 @@
TestPrerenderContents* prerender_contents = GetPrerenderContents();
ASSERT_TRUE(prerender_contents != NULL);
ui_test_utils::WindowedNotificationObserver favicon_update_watcher(
- NotificationType::FAVICON_UPDATED,
+ chrome::NOTIFICATION_FAVICON_UPDATED,
Source<TabContents>(prerender_contents->prerender_contents()->
tab_contents()));
NavigateToDestURL();
« no previous file with comments | « chrome/browser/prefs/pref_set_observer_unittest.cc ('k') | chrome/browser/prerender/prerender_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698