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

Side by Side Diff: extensions/renderer/tab_finder.cc

Issue 890083002: [Extensions] Propagate activeTab hosts to extension background pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « extensions/renderer/tab_finder.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/extensions/tab_finder.h" 5 #include "extensions/renderer/tab_finder.h"
6 6
7 #include "content/public/renderer/render_view.h" 7 #include "content/public/renderer/render_view.h"
8 #include "extensions/renderer/extension_helper.h" 8 #include "extensions/renderer/extension_helper.h"
9 #include "third_party/WebKit/public/web/WebFrame.h" 9 #include "third_party/WebKit/public/web/WebFrame.h"
10 #include "third_party/WebKit/public/web/WebView.h" 10 #include "third_party/WebKit/public/web/WebView.h"
11 11
12 using content::RenderView; 12 using content::RenderView;
13 13
14 namespace extensions { 14 namespace extensions {
15 15
(...skipping 15 matching lines...) Expand all
31 return true; 31 return true;
32 32
33 ExtensionHelper* helper = ExtensionHelper::Get(render_view); 33 ExtensionHelper* helper = ExtensionHelper::Get(render_view);
34 if (helper && helper->tab_id() == tab_id_) 34 if (helper && helper->tab_id() == tab_id_)
35 view_ = render_view; 35 view_ = render_view;
36 36
37 return !view_; 37 return !view_;
38 } 38 }
39 39
40 } // namespace extensions 40 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/tab_finder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698