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

Side by Side Diff: chrome/browser/ui/webui/options/password_manager_handler.cc

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 years, 8 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/password_manager_handler.h" 5 #include "chrome/browser/ui/webui/options/password_manager_handler.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 24 matching lines...) Expand all
35 #include "components/password_manager/core/browser/password_store.h" 35 #include "components/password_manager/core/browser/password_store.h"
36 #include "components/password_manager/core/browser/password_ui_utils.h" 36 #include "components/password_manager/core/browser/password_ui_utils.h"
37 #include "components/password_manager/core/common/experiments.h" 37 #include "components/password_manager/core/common/experiments.h"
38 #include "components/password_manager/core/common/password_manager_features.h" 38 #include "components/password_manager/core/common/password_manager_features.h"
39 #include "components/prefs/pref_service.h" 39 #include "components/prefs/pref_service.h"
40 #include "components/strings/grit/components_strings.h" 40 #include "components/strings/grit/components_strings.h"
41 #include "components/url_formatter/url_formatter.h" 41 #include "components/url_formatter/url_formatter.h"
42 #include "content/public/browser/browser_thread.h" 42 #include "content/public/browser/browser_thread.h"
43 #include "content/public/browser/notification_details.h" 43 #include "content/public/browser/notification_details.h"
44 #include "content/public/browser/notification_source.h" 44 #include "content/public/browser/notification_source.h"
45 #include "content/public/browser/user_metrics.h"
46 #include "content/public/browser/web_contents.h" 45 #include "content/public/browser/web_contents.h"
47 #include "content/public/browser/web_ui.h" 46 #include "content/public/browser/web_ui.h"
48 #include "content/public/common/content_features.h" 47 #include "content/public/common/content_features.h"
49 #include "content/public/common/origin_util.h" 48 #include "content/public/common/origin_util.h"
50 #include "ui/base/l10n/l10n_util.h" 49 #include "ui/base/l10n/l10n_util.h"
51 50
52 namespace options { 51 namespace options {
53 52
54 namespace { 53 namespace {
55 // The following constants should be synchronized with the constants in 54 // The following constants should be synchronized with the constants in
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 password_manager_presenter_->GetAllPasswords(); 397 password_manager_presenter_->GetAllPasswords();
399 UMA_HISTOGRAM_COUNTS("PasswordManager.ExportedPasswordsPerUserInCSV", 398 UMA_HISTOGRAM_COUNTS("PasswordManager.ExportedPasswordsPerUserInCSV",
400 password_list.size()); 399 password_list.size());
401 password_manager::PasswordExporter::Export( 400 password_manager::PasswordExporter::Export(
402 path, password_list, content::BrowserThread::GetTaskRunnerForThread( 401 path, password_list, content::BrowserThread::GetTaskRunnerForThread(
403 content::BrowserThread::FILE) 402 content::BrowserThread::FILE)
404 .get()); 403 .get());
405 } 404 }
406 405
407 } // namespace options 406 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698