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

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

Issue 11246003: Remove Profile->GetExtensionProcessManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix extension_crash_recovery_browsertest Created 8 years, 2 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 | 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 5 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
6 // Use of this source code is governed by a BSD-style license that can be 6 // Use of this source code is governed by a BSD-style license that can be
7 // found in the LICENSE file. 7 // found in the LICENSE file.
8 8
9 #include "chrome/browser/extensions/extension_browsertest.h" 9 #include "chrome/browser/extensions/extension_browsertest.h"
10 #include "chrome/browser/extensions/extension_host.h" 10 #include "chrome/browser/extensions/extension_host.h"
11 #include "chrome/browser/extensions/extension_process_manager.h" 11 #include "chrome/browser/extensions/extension_process_manager.h"
12 #include "chrome/browser/extensions/extension_system.h"
12 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
13 #include "content/public/browser/render_view_host.h" 14 #include "content/public/browser/render_view_host.h"
14 #include "webkit/glue/webpreferences.h" 15 #include "webkit/glue/webpreferences.h"
15 16
16 // Tests that GPU-related WebKit preferences are set for extension background 17 // Tests that GPU-related WebKit preferences are set for extension background
17 // pages. See http://crbug.com/64512. 18 // pages. See http://crbug.com/64512.
18 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, WebKitPrefsBackgroundPage) { 19 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, WebKitPrefsBackgroundPage) {
19 ASSERT_TRUE(LoadExtension( 20 ASSERT_TRUE(LoadExtension(
20 test_data_dir_.AppendASCII("good").AppendASCII("Extensions") 21 test_data_dir_.AppendASCII("good").AppendASCII("Extensions")
21 .AppendASCII("behllobkkfkfnphdnhnkndlbkcpglgmj") 22 .AppendASCII("behllobkkfkfnphdnhnkndlbkcpglgmj")
22 .AppendASCII("1.0.0.0"))); 23 .AppendASCII("1.0.0.0")));
23 24
24 ExtensionProcessManager* manager = 25 ExtensionProcessManager* manager =
25 browser()->profile()->GetExtensionProcessManager(); 26 extensions::ExtensionSystem::Get(browser()->profile())->process_manager();
26 extensions::ExtensionHost* host = 27 extensions::ExtensionHost* host =
27 FindHostWithPath(manager, "/backgroundpage.html", 1); 28 FindHostWithPath(manager, "/backgroundpage.html", 1);
28 webkit_glue::WebPreferences prefs = 29 webkit_glue::WebPreferences prefs =
29 host->render_view_host()->GetWebkitPreferences(); 30 host->render_view_host()->GetWebkitPreferences();
30 ASSERT_TRUE(prefs.experimental_webgl_enabled); 31 ASSERT_TRUE(prefs.experimental_webgl_enabled);
31 ASSERT_TRUE(prefs.accelerated_compositing_enabled); 32 ASSERT_TRUE(prefs.accelerated_compositing_enabled);
32 ASSERT_TRUE(prefs.accelerated_2d_canvas_enabled); 33 ASSERT_TRUE(prefs.accelerated_2d_canvas_enabled);
33 } 34 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/lazy_background_page_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698