Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / installer / util / uninstall_metrics.h
blob344c2f25c4e93a1521b949f7619612107c29fe3a
1 // Copyright 2013 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.
5 #ifndef CHROME_INSTALLER_UTIL_UNINSTALL_METRICS_H_
6 #define CHROME_INSTALLER_UTIL_UNINSTALL_METRICS_H_
8 #include "base/strings/string16.h"
10 namespace base {
11 class DictionaryValue;
12 class FilePath;
15 namespace installer {
17 // Extracts uninstall metrics from the given JSON value.
18 bool ExtractUninstallMetrics(const base::DictionaryValue& root,
19 base::string16* uninstall_metrics);
21 // Extracts uninstall metrics from the JSON file located at file_path.
22 // Returns them in a form suitable for appending to a url that already
23 // has GET parameters, i.e. &metric1=foo&metric2=bar.
24 // Returns true if uninstall_metrics has been successfully populated with
25 // the uninstall metrics, false otherwise.
26 bool ExtractUninstallMetricsFromFile(const base::FilePath& file_path,
27 base::string16* uninstall_metrics);
29 } // namespace installer
31 #endif // CHROME_INSTALLER_UTIL_UNINSTALL_METRICS_H_