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

Unified Diff: content/public/test/test_utils.cc

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix silly compile error Created 7 years, 4 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/public/test/test_utils.cc
diff --git a/content/public/test/test_utils.cc b/content/public/test/test_utils.cc
index 5557dc88f91924894b67baf7ab6ae061c36eb373..056f4188f5154c12831c8e855eabc60e08951595 100644
--- a/content/public/test/test_utils.cc
+++ b/content/public/test/test_utils.cc
@@ -9,6 +9,7 @@
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
+#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/test/test_launcher.h"
@@ -134,6 +135,13 @@ scoped_ptr<base::Value> ExecuteScriptAndGetValue(
return observer.result().Pass();
}
+net::CookieStore* GetCookieStoreForScheme(
+ StoragePartition* storage_partition,
+ const std::string& scheme) {
+ return static_cast<StoragePartitionImpl*>(storage_partition)->
+ GetCookieStoreMap().GetForScheme(scheme);
+}
+
MessageLoopRunner::MessageLoopRunner()
: loop_running_(false),
quit_closure_called_(false) {

Powered by Google App Engine
This is Rietveld 408576698