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

Unified Diff: chrome/browser/ui/search/instant_controller.cc

Issue 2147733004: Remove chrome::NOTIFICATION_INSTANT_TAB_SUPPORT_DETERMINED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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/chrome_notification_types.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index bd52b152c3a62458181b7a7081fa2d45be6988a0..2467bcb7177bed9ceadb82808a1aae25464d52de 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -10,12 +10,10 @@
#include "base/location.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/instant_service.h"
#include "chrome/browser/search/instant_service_factory.h"
#include "chrome/browser/ui/browser_instant_controller.h"
-#include "content/public/browser/notification_service.h"
#include "content/public/browser/web_contents.h"
#include "url/gurl.h"
@@ -80,14 +78,10 @@ void InstantController::InstantSupportDetermined(
bool supports_instant) {
DCHECK(IsContentsFrom(instant_tab_.get(), contents));
- if (!supports_instant)
+ if (!supports_instant) {
base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE,
instant_tab_.release());
-
- content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_INSTANT_TAB_SUPPORT_DETERMINED,
- content::Source<InstantController>(this),
- content::NotificationService::NoDetails());
+ }
}
void InstantController::InstantTabAboutToNavigateMainFrame(
« no previous file with comments | « chrome/browser/chrome_notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698