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

Unified Diff: sky/engine/core/html/imports/HTMLImportsController.cpp

Issue 867903002: Remove UseCounter (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/html/HTMLImageElement.cpp ('k') | sky/engine/core/html/parser/HTMLDocumentParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/imports/HTMLImportsController.cpp
diff --git a/sky/engine/core/html/imports/HTMLImportsController.cpp b/sky/engine/core/html/imports/HTMLImportsController.cpp
index a340b8ce5edf7de15b73f88a7d2bbd6ded9d6ae9..66640dbe415e1a4936105a26933e7bee120a2633 100644
--- a/sky/engine/core/html/imports/HTMLImportsController.cpp
+++ b/sky/engine/core/html/imports/HTMLImportsController.cpp
@@ -34,7 +34,6 @@
#include "sky/engine/core/dom/Document.h"
#include "sky/engine/core/fetch/ResourceFetcher.h"
#include "sky/engine/core/frame/LocalFrame.h"
-#include "sky/engine/core/frame/UseCounter.h"
#include "sky/engine/core/html/imports/HTMLImportChild.h"
#include "sky/engine/core/html/imports/HTMLImportChildClient.h"
#include "sky/engine/core/html/imports/HTMLImportLoader.h"
@@ -64,7 +63,6 @@ void HTMLImportsController::removeFrom(Document& master)
HTMLImportsController::HTMLImportsController(Document& master)
: m_root(HTMLImportTreeRoot::create(&master))
{
- UseCounter::count(master, UseCounter::HTMLImports);
}
HTMLImportsController::~HTMLImportsController()
@@ -91,8 +89,6 @@ static bool makesCycle(HTMLImport* parent, const KURL& url)
HTMLImportChild* HTMLImportsController::createChild(const KURL& url, HTMLImportLoader* loader, HTMLImport* parent, HTMLImportChildClient* client)
{
HTMLImport::SyncMode mode = client->isSync() && !makesCycle(parent, url) ? HTMLImport::Sync : HTMLImport::Async;
- if (mode == HTMLImport::Async)
- UseCounter::count(root()->document(), UseCounter::HTMLImportsAsyncAttribute);
OwnPtr<HTMLImportChild> child = adoptPtr(new HTMLImportChild(url, loader, mode));
child->setClient(client);
« no previous file with comments | « sky/engine/core/html/HTMLImageElement.cpp ('k') | sky/engine/core/html/parser/HTMLDocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698