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

Unified Diff: components/autofill/content/browser/autocheckout_statistic.cc

Issue 21054003: Autocheckout: Manually revert r208999 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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: components/autofill/content/browser/autocheckout_statistic.cc
diff --git a/components/autofill/content/browser/autocheckout_statistic.cc b/components/autofill/content/browser/autocheckout_statistic.cc
deleted file mode 100644
index 9df4f4e4a6119cfbddc4667fea3da597727f909a..0000000000000000000000000000000000000000
--- a/components/autofill/content/browser/autocheckout_statistic.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/autofill/content/browser/autocheckout_statistic.h"
-
-#include "base/logging.h"
-#include "base/strings/string_number_conversions.h"
-#include "base/values.h"
-
-namespace autofill {
-
-namespace {
-
-std::string AutocheckoutStepToString(AutocheckoutStepType step) {
- switch(step) {
- case AUTOCHECKOUT_STEP_SHIPPING:
- return "AUTOCHECKOUT_STEP_SHIPPING";
- case AUTOCHECKOUT_STEP_DELIVERY:
- return "AUTOCHECKOUT_STEP_DELIVERY";
- case AUTOCHECKOUT_STEP_BILLING:
- return "AUTOCHECKOUT_STEP_BILLING";
- case AUTOCHECKOUT_STEP_PROXY_CARD:
- return "AUTOCHECKOUT_STEP_PROXY_CARD";
- }
- NOTREACHED();
- return "NOT_POSSIBLE";
-}
-
-} // namespace
-
-AutocheckoutStatistic::AutocheckoutStatistic() : page_number(-1) {
-}
-
-AutocheckoutStatistic::~AutocheckoutStatistic() {
-}
-
-scoped_ptr<base::DictionaryValue> AutocheckoutStatistic::ToDictionary() const {
- scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
- std::string description = base::IntToString(page_number);
- for (size_t i = 0; i < steps.size(); ++i) {
- description = description + "_" + AutocheckoutStepToString(steps[i]);
- }
- dict->SetString("step_description", description);
- dict->SetInteger("time_taken", time_taken.InMilliseconds());
- DVLOG(1) << "Step : " << description
- << ", time_taken: " << time_taken.InMilliseconds();
- return dict.Pass();
-}
-
-} // namespace autofill
-

Powered by Google App Engine
This is Rietveld 408576698