Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / automation / automation_browser_tracker.cc
blob8104806d0719f96687c007e11d5baa5e0ff73467
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/automation/automation_browser_tracker.h"
7 #include "chrome/browser/chrome_notification_types.h"
8 #include "content/public/browser/notification_source.h"
10 AutomationBrowserTracker::AutomationBrowserTracker(IPC::Sender* automation)
11 : AutomationResourceTracker<Browser*>(automation) {
14 AutomationBrowserTracker::~AutomationBrowserTracker() {}
16 void AutomationBrowserTracker::AddObserver(Browser* resource) {
17 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_CLOSED,
18 content::Source<Browser>(resource));
21 void AutomationBrowserTracker::RemoveObserver(Browser* resource) {
22 registrar_.Remove(this, chrome::NOTIFICATION_BROWSER_CLOSED,
23 content::Source<Browser>(resource));