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

Side by Side Diff: chrome/browser/extensions/extension_tab_util.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | Annotate | Revision Log
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/browser/extensions/extension_tab_util.h" 5 #include "chrome/browser/extensions/extension_tab_util.h"
6 6
7 #include "apps/shell_window.h" 7 #include "apps/shell_window.h"
8 #include "apps/shell_window_registry.h" 8 #include "apps/shell_window_registry.h"
9 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" 9 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
10 #include "chrome/browser/extensions/tab_helper.h" 10 #include "chrome/browser/extensions/tab_helper.h"
11 #include "chrome/browser/extensions/window_controller.h" 11 #include "chrome/browser/extensions/window_controller.h"
12 #include "chrome/browser/extensions/window_controller_list.h" 12 #include "chrome/browser/extensions/window_controller_list.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/sessions/session_id.h" 14 #include "chrome/browser/sessions/session_id.h"
15 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/ui/browser_finder.h" 16 #include "chrome/browser/ui/browser_finder.h"
17 #include "chrome/browser/ui/browser_iterator.h" 17 #include "chrome/browser/ui/browser_iterator.h"
18 #include "chrome/browser/ui/browser_window.h" 18 #include "chrome/browser/ui/browser_window.h"
19 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" 19 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
20 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" 20 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h"
21 #include "chrome/browser/ui/tabs/tab_strip_model.h" 21 #include "chrome/browser/ui/tabs/tab_strip_model.h"
22 #include "chrome/common/extensions/extension.h"
23 #include "chrome/common/extensions/manifest_url_handler.h" 22 #include "chrome/common/extensions/manifest_url_handler.h"
24 #include "chrome/common/extensions/permissions/permissions_data.h"
25 #include "chrome/common/net/url_fixer_upper.h" 23 #include "chrome/common/net/url_fixer_upper.h"
26 #include "chrome/common/url_constants.h" 24 #include "chrome/common/url_constants.h"
27 #include "content/public/browser/favicon_status.h" 25 #include "content/public/browser/favicon_status.h"
28 #include "content/public/browser/navigation_entry.h" 26 #include "content/public/browser/navigation_entry.h"
29 #include "content/public/browser/web_contents.h" 27 #include "content/public/browser/web_contents.h"
30 #include "content/public/browser/web_contents_view.h" 28 #include "content/public/browser/web_contents_view.h"
29 #include "extensions/common/extension.h"
31 #include "extensions/common/manifest_constants.h" 30 #include "extensions/common/manifest_constants.h"
32 #include "extensions/common/permissions/api_permission.h" 31 #include "extensions/common/permissions/api_permission.h"
32 #include "extensions/common/permissions/permissions_data.h"
33 #include "url/gurl.h" 33 #include "url/gurl.h"
34 34
35 using apps::ShellWindow; 35 using apps::ShellWindow;
36 using content::NavigationEntry; 36 using content::NavigationEntry;
37 using content::WebContents; 37 using content::WebContents;
38 38
39 namespace extensions { 39 namespace extensions {
40 40
41 namespace { 41 namespace {
42 42
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 content::PAGE_TRANSITION_LINK, 353 content::PAGE_TRANSITION_LINK,
354 false); 354 false);
355 browser->OpenURL(params); 355 browser->OpenURL(params);
356 browser->window()->Show(); 356 browser->window()->Show();
357 WebContents* web_contents = 357 WebContents* web_contents =
358 browser->tab_strip_model()->GetActiveWebContents(); 358 browser->tab_strip_model()->GetActiveWebContents();
359 web_contents->GetDelegate()->ActivateContents(web_contents); 359 web_contents->GetDelegate()->ActivateContents(web_contents);
360 } 360 }
361 361
362 } // namespace extensions 362 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_system.cc ('k') | chrome/browser/extensions/extension_test_notification_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698