Chromium Code Reviews| Index: components/browser_watcher/watcher_metrics_provider_win.h |
| diff --git a/components/browser_watcher/watcher_metrics_provider_win.h b/components/browser_watcher/watcher_metrics_provider_win.h |
| index d2f800e0caeaf8e2728e03241d7ecd2a43f1dd12..48ec7faebbafdffff005e7b8e1750e2256e65f3c 100644 |
| --- a/components/browser_watcher/watcher_metrics_provider_win.h |
| +++ b/components/browser_watcher/watcher_metrics_provider_win.h |
| @@ -20,7 +20,7 @@ class WatcherMetricsProviderWin : public metrics::MetricsProvider { |
| // Initializes the reporter. |cleanup_io_task_runner| is used to clear |
| // leftover data in registry if metrics reporting is disabled. |
| - WatcherMetricsProviderWin(const base::char16* registry_path, |
| + WatcherMetricsProviderWin(const base::string16& registry_path, |
|
Sigurður Ásgeirsson
2016/01/25 20:50:24
this'll force an extra copy. No biggie except we f
gab
2016/01/26 02:55:05
I don't think it does as the char* were replaced b
grt (UTC plus 2)
2016/01/26 16:13:04
I like the StringPiece suggestion since it doesn't
|
| base::TaskRunner* cleanup_io_task_runner); |
| ~WatcherMetricsProviderWin() override; |
| @@ -33,7 +33,7 @@ class WatcherMetricsProviderWin : public metrics::MetricsProvider { |
| private: |
| bool recording_enabled_; |
| bool cleanup_scheduled_; |
| - base::string16 registry_path_; |
| + const base::string16 registry_path_; |
| scoped_refptr<base::TaskRunner> cleanup_io_task_runner_; |
| DISALLOW_COPY_AND_ASSIGN(WatcherMetricsProviderWin); |