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

Side by Side Diff: chrome/browser/net/data_use_user_data.cc

Issue 1279543002: Support needed to measure user and service traffic in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewHistogram
Patch Set: Fix few formatting issues. Created 5 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <string>
6
7 #include "chrome/browser/net/data_use_user_data.h"
8
9 DataUseUserData::DataUseUserData(std::string service_name)
10 : service_name_(service_name) {}
11
12 DataUseUserData::~DataUseUserData() {}
13
14 // static
15 const void* DataUseUserData::kUserDataKey =
16 static_cast<const void*>(&DataUseUserData::kUserDataKey);
17
18 // Helper function to create DataUseUserData.
19 base::SupportsUserData::Data* CreateDataUseUserData(
20 std::string service_name) {
21 return new DataUseUserData(service_name);
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698