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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit.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/autocomplete/autocomplete_edit.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit.cc (revision 91968)
+++ chrome/browser/autocomplete/autocomplete_edit.cc (working copy)
@@ -31,6 +31,7 @@
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/omnibox/omnibox_view.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/url_constants.h"
#include "content/browser/user_metrics.h"
#include "content/common/notification_service.h"
@@ -500,7 +501,7 @@
else if (!has_temporary_text_)
log.inline_autocompleted_length = inline_autocomplete_text_.length();
NotificationService::current()->Notify(
- NotificationType::OMNIBOX_OPENED_URL, Source<Profile>(profile_),
+ chrome::NOTIFICATION_OMNIBOX_OPENED_URL, Source<Profile>(profile_),
Details<AutocompleteLog>(&log));
}
@@ -590,7 +591,7 @@
void AutocompleteEditModel::OnSetFocus(bool control_down) {
has_focus_ = true;
control_key_state_ = control_down ? DOWN_WITHOUT_CHANGE : UP;
- NotificationService::current()->Notify(NotificationType::OMNIBOX_FOCUSED,
+ NotificationService::current()->Notify(chrome::NOTIFICATION_OMNIBOX_FOCUSED,
Source<AutocompleteEditModel>(this),
NotificationService::NoDetails());
InstantController* instant = controller_->GetInstant();
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_browsertest.cc ('k') | chrome/browser/autocomplete/autocomplete_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698