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

Unified Diff: content/renderer/pepper/plugin_instance_throttler_impl_unittest.cc

Issue 1341563002: Plugin Power Saver: Improve origin handling esp. with OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/plugin_instance_throttler_impl_unittest.cc
diff --git a/content/renderer/pepper/plugin_instance_throttler_impl_unittest.cc b/content/renderer/pepper/plugin_instance_throttler_impl_unittest.cc
index 65bef9399e3b9fa899ffc6257efa8a5fd9ec3b1a..5986cdeae0e940a8ea0bfbc4f6c543dddf5e044b 100644
--- a/content/renderer/pepper/plugin_instance_throttler_impl_unittest.cc
+++ b/content/renderer/pepper/plugin_instance_throttler_impl_unittest.cc
@@ -15,12 +15,12 @@
#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "third_party/WebKit/public/web/WebPluginParams.h"
#include "ui/gfx/canvas.h"
+#include "url/gurl.h"
+#include "url/origin.h"
using testing::_;
using testing::Return;
-class GURL;
-
namespace content {
class PluginInstanceThrottlerImplTest
@@ -37,7 +37,7 @@ class PluginInstanceThrottlerImplTest
void SetUp() override {
throttler_.reset(new PluginInstanceThrottlerImpl);
- throttler_->Initialize(nullptr, GURL("http://example.com"),
+ throttler_->Initialize(nullptr, url::Origin(GURL("http://example.com")),
"Shockwave Flash", gfx::Size(100, 100));
throttler_->AddObserver(this);
}
« no previous file with comments | « content/renderer/pepper/plugin_instance_throttler_impl.cc ('k') | content/renderer/pepper/plugin_power_saver_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698