Commit b2e5b6d8 authored by Carlos Caballero's avatar Carlos Caballero Committed by Commit Bot

Remove deprecated MessageLoop::Type

MessagePumpType should be used instead.

Bug: 891670
Change-Id: I6e73c7d3197beca3885aefbf71a7a64a26e42efb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1777868
Auto-Submit: Carlos Caballero <carlscab@google.com>
Commit-Queue: Carlos Caballero <carlscab@google.com>
Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#693067}
parent 2be9da7a
...@@ -85,18 +85,6 @@ class SequenceManagerImpl; ...@@ -85,18 +85,6 @@ class SequenceManagerImpl;
// for tests. TODO(https://crbug.com/891670/) remove this class. // for tests. TODO(https://crbug.com/891670/) remove this class.
class BASE_EXPORT MessageLoop { class BASE_EXPORT MessageLoop {
public: public:
// DEPRECATED: Use MessagePumpType instead
using Type = MessagePumpType;
// DEPRECATED: Use MessagePumpType::* instead
static constexpr Type TYPE_DEFAULT = Type::DEFAULT;
static constexpr Type TYPE_UI = Type::UI;
static constexpr Type TYPE_CUSTOM = Type::CUSTOM;
static constexpr Type TYPE_IO = Type::IO;
#if defined(OS_ANDROID)
static constexpr Type TYPE_JAVA = Type::JAVA;
#endif // defined(OS_ANDROID)
// Normally, it is not necessary to instantiate a MessageLoop. Instead, it // Normally, it is not necessary to instantiate a MessageLoop. Instead, it
// is typical to make use of the current thread's MessageLoop instance. // is typical to make use of the current thread's MessageLoop instance.
explicit MessageLoop(MessagePumpType type = MessagePumpType::DEFAULT); explicit MessageLoop(MessagePumpType type = MessagePumpType::DEFAULT);
......
...@@ -21,7 +21,7 @@ class BASE_EXPORT MessagePump { ...@@ -21,7 +21,7 @@ class BASE_EXPORT MessagePump {
public: public:
using MessagePumpFactory = std::unique_ptr<MessagePump>(); using MessagePumpFactory = std::unique_ptr<MessagePump>();
// Uses the given base::MessagePumpFactory to override the default MessagePump // Uses the given base::MessagePumpFactory to override the default MessagePump
// implementation for 'Type::UI'. May only be called once. // implementation for 'MessagePumpType::UI'. May only be called once.
static void OverrideMessagePumpForUIFactory(MessagePumpFactory* factory); static void OverrideMessagePumpForUIFactory(MessagePumpFactory* factory);
// Returns true if the MessagePumpForUI has been overidden. // Returns true if the MessagePumpForUI has been overidden.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment