| Index: chrome/browser/devtools/devtools_sanity_browsertest.cc
|
| ===================================================================
|
| --- chrome/browser/devtools/devtools_sanity_browsertest.cc (revision 192091)
|
| +++ chrome/browser/devtools/devtools_sanity_browsertest.cc (working copy)
|
| @@ -8,6 +8,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/path_service.h"
|
| +#include "base/prefs/pref_service.h"
|
| #include "base/stringprintf.h"
|
| #include "base/test/test_timeouts.h"
|
| #include "base/utf_string_conversions.h"
|
| @@ -25,6 +26,7 @@
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/chrome_paths.h"
|
| #include "chrome/common/chrome_switches.h"
|
| +#include "chrome/common/pref_names.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "chrome/test/base/in_process_browser_test.h"
|
| #include "chrome/test/base/ui_test_utils.h"
|
| @@ -426,8 +428,11 @@
|
| TestScriptsTabIsPopulatedOnInspectedPageRefresh) {
|
| // Clear inspector settings to ensure that Elements will be
|
| // current panel when DevTools window is open.
|
| - content::GetContentClient()->browser()->ClearInspectorSettings(
|
| - GetInspectedTab()->GetRenderViewHost());
|
| + content::BrowserContext* browser_context =
|
| + GetInspectedTab()->GetBrowserContext();
|
| + Profile::FromBrowserContext(browser_context)->GetPrefs()->
|
| + ClearPref(prefs::kWebKitInspectorSettings);
|
| +
|
| RunTest("testScriptsTabIsPopulatedOnInspectedPageRefresh",
|
| kDebuggerTestPage);
|
| }
|
|
|