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

Unified Diff: chrome/browser/ui/web_applications/web_app_ui.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
Index: chrome/browser/ui/web_applications/web_app_ui.cc
===================================================================
--- chrome/browser/ui/web_applications/web_app_ui.cc (revision 91968)
+++ chrome/browser/ui/web_applications/web_app_ui.cc (working copy)
@@ -44,7 +44,7 @@
private:
// Overridden from NotificationObserver:
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details);
@@ -99,7 +99,7 @@
&unprocessed_icons_);
file_name_ = web_app::internals::GetSanitizedFileName(shortcut_info_.title);
- registrar_.Add(this, NotificationType::TAB_CLOSING,
+ registrar_.Add(this, content::NOTIFICATION_TAB_CLOSING,
Source<NavigationController>(&tab_contents_->controller()));
}
@@ -108,10 +108,10 @@
DownloadIcon();
}
-void UpdateShortcutWorker::Observe(NotificationType type,
+void UpdateShortcutWorker::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::TAB_CLOSING &&
+ if (type == content::NOTIFICATION_TAB_CLOSING &&
Source<NavigationController>(source).ptr() ==
&tab_contents_->controller()) {
// Underlying tab is closing.
« no previous file with comments | « chrome/browser/ui/views/wrench_menu.cc ('k') | chrome/browser/ui/webui/chrome_url_data_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698