summaryrefslogtreecommitdiffstats
path: root/chrome/test/perf
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/perf')
-rw-r--r--chrome/test/perf/frame_rate/frame_rate_tests.cc4
-rw-r--r--chrome/test/perf/perf_ui_test_suite.cc6
2 files changed, 5 insertions, 5 deletions
diff --git a/chrome/test/perf/frame_rate/frame_rate_tests.cc b/chrome/test/perf/frame_rate/frame_rate_tests.cc
index 7b36b27..d34388e 100644
--- a/chrome/test/perf/frame_rate/frame_rate_tests.cc
+++ b/chrome/test/perf/frame_rate/frame_rate_tests.cc
@@ -196,7 +196,7 @@ class FrameRateTest
// race condition caused by an html redirect. If that is the case, verify
// that flag kHasRedirect is enabled for the current test.
ASSERT_TRUE(WaitUntilJavaScriptCondition(
- tab,
+ tab.get(),
std::wstring(),
L"window.domAutomationController.send(__initialized);",
TestTimeouts::large_test_timeout()));
@@ -211,7 +211,7 @@ class FrameRateTest
// Block until the tests completes.
ASSERT_TRUE(WaitUntilJavaScriptCondition(
- tab,
+ tab.get(),
std::wstring(),
L"window.domAutomationController.send(!__running_all);",
TestTimeouts::large_test_timeout()));
diff --git a/chrome/test/perf/perf_ui_test_suite.cc b/chrome/test/perf/perf_ui_test_suite.cc
index 1f15015..0c6312d 100644
--- a/chrome/test/perf/perf_ui_test_suite.cc
+++ b/chrome/test/perf/perf_ui_test_suite.cc
@@ -153,7 +153,7 @@ void PerfUITestSuite::BuildCachedThemePakIn(
*valid_value,
Extension::NO_FLAGS,
&error);
- if (!extension)
+ if (!extension.get())
LOG(FATAL) << "Error loading theme extension: " << error;
// Build the "Cached Theme.pak" file in the template. (It's not committed
@@ -166,8 +166,8 @@ void PerfUITestSuite::BuildCachedThemePakIn(
&message_loop_);
scoped_refptr<BrowserThemePack> theme(
- BrowserThemePack::BuildFromExtension(extension));
- if (!theme)
+ BrowserThemePack::BuildFromExtension(extension.get()));
+ if (!theme.get())
LOG(FATAL) << "Failed to load theme from extension";
theme->WriteToDisk(extension_base.AppendASCII("Cached Theme.pak"));