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

Unified Diff: content/browser/file_system/file_system_dispatcher_host.cc

Issue 8919017: Split UserMetrics into API vs. implementation. Move API to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Version for commit (merged again). Created 9 years 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/browser/file_system/file_system_dispatcher_host.cc
diff --git a/content/browser/file_system/file_system_dispatcher_host.cc b/content/browser/file_system/file_system_dispatcher_host.cc
index e2a052b8746f80e86ff6ff47e514c414df1506c9..2f60fc9b33167352d806d1f3107b2e6a05050bbd 100644
--- a/content/browser/file_system/file_system_dispatcher_host.cc
+++ b/content/browser/file_system/file_system_dispatcher_host.cc
@@ -11,8 +11,8 @@
#include "base/platform_file.h"
#include "base/threading/thread.h"
#include "base/time.h"
-#include "content/browser/user_metrics.h"
#include "content/common/file_system_messages.h"
+#include "content/public/browser/user_metrics.h"
#include "googleurl/src/gurl.h"
#include "ipc/ipc_platform_file.h"
#include "net/url_request/url_request_context.h"
@@ -25,6 +25,7 @@
#include "webkit/fileapi/file_system_util.h"
using content::BrowserThread;
+using content::UserMetricsAction;
using fileapi::FileSystemCallbackDispatcher;
using fileapi::FileSystemFileUtil;
using fileapi::FileSystemOperation;
@@ -165,9 +166,9 @@ void FileSystemDispatcherHost::OnOpen(
int request_id, const GURL& origin_url, fileapi::FileSystemType type,
int64 requested_size, bool create) {
if (type == fileapi::kFileSystemTypeTemporary) {
- UserMetrics::RecordAction(UserMetricsAction("OpenFileSystemTemporary"));
+ content::RecordAction(UserMetricsAction("OpenFileSystemTemporary"));
} else if (type == fileapi::kFileSystemTypePersistent) {
- UserMetrics::RecordAction(UserMetricsAction("OpenFileSystemPersistent"));
+ content::RecordAction(UserMetricsAction("OpenFileSystemPersistent"));
}
GetNewOperation(request_id)->OpenFileSystem(origin_url, type, create);
}
« no previous file with comments | « content/browser/browser_message_filter.cc ('k') | content/browser/in_process_webkit/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698