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

Unified Diff: ios/web/navigation/crw_session_controller.mm

Issue 2013853002: Removing deprecated ios/web/user_metrics.cc and references to it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing ios_web.gyp Created 4 years, 7 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 | « ios/web/ios_web.gyp ('k') | ios/web/public/user_metrics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/crw_session_controller.mm
diff --git a/ios/web/navigation/crw_session_controller.mm b/ios/web/navigation/crw_session_controller.mm
index afd78bfac7e92e7558926228b3e0e276dbaa3eb8..0f06c7de9d08fc98216b4651385b8f4457a41a9d 100644
--- a/ios/web/navigation/crw_session_controller.mm
+++ b/ios/web/navigation/crw_session_controller.mm
@@ -14,6 +14,7 @@
#include "base/logging.h"
#include "base/mac/objc_property_releaser.h"
#import "base/mac/scoped_nsobject.h"
+#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "base/strings/sys_string_conversions.h"
#import "ios/web/history_state_util.h"
@@ -28,7 +29,6 @@
#include "ios/web/public/browser_url_rewriter.h"
#include "ios/web/public/referrer.h"
#include "ios/web/public/ssl_status.h"
-#include "ios/web/public/user_metrics.h"
using base::UserMetricsAction;
@@ -670,7 +670,7 @@ NSString* const kXCallbackParametersKey = @"xCallbackParameters";
if (hadTransientEntry)
return;
- web::RecordAction(UserMetricsAction("Back"));
+ base::RecordAction(UserMetricsAction("Back"));
_previousNavigationIndex = _currentNavigationIndex;
// To stop the user getting 'stuck' on redirecting pages they weren't even
// aware existed, it is necessary to pass over pages that would immediately
@@ -688,7 +688,7 @@ NSString* const kXCallbackParametersKey = @"xCallbackParameters";
- (void)goForward {
[self discardTransientEntry];
- web::RecordAction(UserMetricsAction("Forward"));
+ base::RecordAction(UserMetricsAction("Forward"));
if (_currentNavigationIndex + 1 < static_cast<NSInteger>([_entries count])) {
_previousNavigationIndex = _currentNavigationIndex;
++_currentNavigationIndex;
« no previous file with comments | « ios/web/ios_web.gyp ('k') | ios/web/public/user_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698