Index: chrome/browser/extensions/location_bar_controller_provider.cc |
diff --git a/chrome/browser/extensions/location_bar_controller_provider.cc b/chrome/browser/extensions/location_bar_controller_provider.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..711830474880d6dcb1263ac64fa8501797eacadf |
--- /dev/null |
+++ b/chrome/browser/extensions/location_bar_controller_provider.cc |
@@ -0,0 +1,37 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/extensions/location_bar_controller_provider.h" |
+ |
+#include "chrome/browser/extensions/tab_helper.h" |
+#include "extensions/browser/extension_registry.h" |
+ |
+namespace extensions { |
+ |
+LocationBarControllerProvider::LocationBarControllerProvider( |
+ content::WebContents* web_contents) |
+ : content::WebContentsObserver(web_contents), |
+ web_contents_(web_contents) { |
+ DCHECK(web_contents); |
+} |
+ |
+LocationBarControllerProvider::~LocationBarControllerProvider() { |
+} |
+ |
+ExtensionRegistry* LocationBarControllerProvider::GetExtensionRegistry() { |
+ return ExtensionRegistry::Get(web_contents_->GetBrowserContext()); |
+} |
+ |
+void LocationBarControllerProvider::NotifyChange() { |
+ TabHelper::FromWebContents(web_contents_)->location_bar_controller() |
+ ->NotifyChange(); |
+} |
+ |
+void LocationBarControllerProvider::DidNavigateMainFrame( |
not at google - send to devlin
2014/05/08 20:47:09
delete this method?
Devlin
2014/05/08 23:01:00
s/method/file.
|
+ const content::LoadCommittedDetails& details, |
+ const content::FrameNavigateParams& params) { |
+ NavigatedMainFrame(details, params); |
+} |
+ |
+} // namespace extensions |