mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Remove some more WTF usage
BUG= R=abarth@chromium.org Review URL: https://codereview.chromium.org/1237563003 .
This commit is contained in:
parent
2613a2972e
commit
008830de1b
@ -14,7 +14,6 @@
|
||||
#include "sky/engine/tonic/dart_isolate_scope.h"
|
||||
#include "sky/engine/tonic/dart_library_provider.h"
|
||||
#include "sky/engine/tonic/dart_state.h"
|
||||
#include "sky/engine/wtf/MainThread.h"
|
||||
|
||||
using mojo::common::DataPipeDrainer;
|
||||
|
||||
@ -200,11 +199,9 @@ Dart_Handle DartLibraryLoader::HandleLibraryTag(Dart_LibraryTag tag,
|
||||
if (tag == Dart_kCanonicalizeUrl)
|
||||
return DartState::Current()->library_loader().CanonicalizeURL(library, url);
|
||||
if (tag == Dart_kImportTag) {
|
||||
CHECK(WTF::isMainThread());
|
||||
return DartState::Current()->library_loader().Import(library, url);
|
||||
}
|
||||
if (tag == Dart_kSourceTag) {
|
||||
CHECK(WTF::isMainThread());
|
||||
return DartState::Current()->library_loader().Source(library, url);
|
||||
}
|
||||
DCHECK(false);
|
||||
|
||||
@ -10,7 +10,6 @@
|
||||
#include "sky/engine/tonic/dart_converter.h"
|
||||
#include "sky/engine/tonic/dart_error.h"
|
||||
#include "sky/engine/tonic/dart_isolate_scope.h"
|
||||
#include "sky/engine/wtf/MainThread.h"
|
||||
|
||||
using mojo::common::DataPipeDrainer;
|
||||
|
||||
|
||||
@ -10,7 +10,6 @@
|
||||
#include "sky/engine/tonic/dart_library_loader.h"
|
||||
#include "sky/engine/tonic/dart_string_cache.h"
|
||||
#include "sky/engine/tonic/dart_timer_heap.h"
|
||||
#include "sky/engine/wtf/PassOwnPtr.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user