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

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 10701030: Refactor SyncedWindowDelegateAndroid into TabModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made some changes from a downstream review Created 8 years, 5 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
Index: chrome/browser/metrics/metrics_service.cc
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index ad924096a76d121bc54aae83094f03479d22990c..559376f2e38e1296c1d90e6aba89beae0303e192 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -211,6 +211,10 @@
#include <windows.h> // Needed for STATUS_* codes
#endif
+#if defined(OS_ANDROID)
+#include "chrome/browser/ui/android/tab_model/tab_model_list_android.h"
+#endif
+
using base::Time;
using content::BrowserThread;
using content::ChildProcessData;
@@ -1853,7 +1857,11 @@ bool MetricsService::CanLogNotification(
// We simply don't log anything to UMA if there is a single incognito
// session visible. The problem is that we always notify using the orginal
// profile in order to simplify notification processing.
+#if defined(OS_ANDROID)
+ return !TabModelListAndroid::IsOffTheRecordSessionActive();
sky 2012/07/16 23:07:30 I would rather see a function in the browser names
David Trainor- moved to gerrit 2012/07/18 23:59:04 Done.
jar (doing other things) 2012/07/19 00:11:35 I see the comment... and your "done," but don't se
+#else
return !BrowserList::IsOffTheRecordSessionActive();
+#endif
}
void MetricsService::RecordBooleanPrefValue(const char* path, bool value) {

Powered by Google App Engine
This is Rietveld 408576698