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

Unified Diff: ui/base/dragdrop/os_exchange_data_provider_factory.h

Issue 2807833002: [views-mus] Prevent creating a native OzonePlatform in mus tests. (Closed)
Patch Set: sky comments Created 3 years, 8 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
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dragdrop/os_exchange_data_provider_factory.h
diff --git a/ui/base/dragdrop/os_exchange_data_provider_factory.h b/ui/base/dragdrop/os_exchange_data_provider_factory.h
index 423c70014cf12e85bc663dba665f039bc72275ad..4029d089f623f889fba9c5f51e4cae471f51085f 100644
--- a/ui/base/dragdrop/os_exchange_data_provider_factory.h
+++ b/ui/base/dragdrop/os_exchange_data_provider_factory.h
@@ -25,6 +25,9 @@ class UI_BASE_EXPORT OSExchangeDataProviderFactory {
// Sets the factory which builds the providers.
static void SetFactory(Factory* factory);
+ // Returns the current factory and sets the factory to null.
+ static Factory* TakeFactory();
sky 2017/04/12 19:38:15 Can this return a std::unique_ptr?
Elliot Glaysher 2017/04/12 19:52:25 Not easily without changing the ownership the Fact
+
// Creates a Provider based on the current configuration.
static std::unique_ptr<OSExchangeData::Provider> CreateProvider();
};
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698