OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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. | |
4 | |
5 #include "chrome/browser/extensions/location_bar_controller_provider.h" | |
6 | |
7 #include "chrome/browser/extensions/tab_helper.h" | |
8 #include "extensions/browser/extension_registry.h" | |
9 | |
10 namespace extensions { | |
11 | |
12 LocationBarControllerProvider::LocationBarControllerProvider( | |
13 content::WebContents* web_contents) | |
14 : content::WebContentsObserver(web_contents), | |
15 web_contents_(web_contents) { | |
16 DCHECK(web_contents); | |
17 } | |
18 | |
19 LocationBarControllerProvider::~LocationBarControllerProvider() { | |
20 } | |
21 | |
22 ExtensionRegistry* LocationBarControllerProvider::GetExtensionRegistry() { | |
23 return ExtensionRegistry::Get(web_contents_->GetBrowserContext()); | |
24 } | |
25 | |
26 void LocationBarControllerProvider::NotifyChange() { | |
27 TabHelper::FromWebContents(web_contents_)->location_bar_controller() | |
28 ->NotifyChange(); | |
29 } | |
30 | |
31 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.
| |
32 const content::LoadCommittedDetails& details, | |
33 const content::FrameNavigateParams& params) { | |
34 NavigatedMainFrame(details, params); | |
35 } | |
36 | |
37 } // namespace extensions | |
OLD | NEW |