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

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

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. Created 4 years, 2 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 {"passwordsNoExceptionsDescription", 128 {"passwordsNoExceptionsDescription",
129 IDS_PASSWORDS_PAGE_VIEW_NO_EXCEPTIONS_DESCRIPTION}, 129 IDS_PASSWORDS_PAGE_VIEW_NO_EXCEPTIONS_DESCRIPTION},
130 {"passwordManagerImportPasswordButtonText", 130 {"passwordManagerImportPasswordButtonText",
131 IDS_PASSWORD_MANAGER_IMPORT_BUTTON}, 131 IDS_PASSWORD_MANAGER_IMPORT_BUTTON},
132 {"passwordManagerExportPasswordButtonText", 132 {"passwordManagerExportPasswordButtonText",
133 IDS_PASSWORD_MANAGER_EXPORT_BUTTON}, 133 IDS_PASSWORD_MANAGER_EXPORT_BUTTON},
134 }; 134 };
135 135
136 RegisterStrings(localized_strings, resources, arraysize(resources)); 136 RegisterStrings(localized_strings, resources, arraysize(resources));
137 137
138 const ProfileSyncService* sync_service = 138 const browser_sync::ProfileSyncService* sync_service =
139 ProfileSyncServiceFactory::GetForProfile(GetProfile()); 139 ProfileSyncServiceFactory::GetForProfile(GetProfile());
140 int title_id = 140 int title_id =
141 password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service) 141 password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service)
142 ? IDS_PASSWORD_MANAGER_SMART_LOCK_FOR_PASSWORDS 142 ? IDS_PASSWORD_MANAGER_SMART_LOCK_FOR_PASSWORDS
143 : IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE; 143 : IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE;
144 RegisterTitle(localized_strings, "passwordsPage", title_id); 144 RegisterTitle(localized_strings, "passwordsPage", title_id);
145 145
146 localized_strings->SetString("passwordManagerLearnMoreURL", 146 localized_strings->SetString("passwordManagerLearnMoreURL",
147 chrome::kPasswordManagerLearnMoreURL); 147 chrome::kPasswordManagerLearnMoreURL);
148 localized_strings->SetString( 148 localized_strings->SetString(
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 password_manager_presenter_->GetAllPasswords(); 408 password_manager_presenter_->GetAllPasswords();
409 UMA_HISTOGRAM_COUNTS("PasswordManager.ExportedPasswordsPerUserInCSV", 409 UMA_HISTOGRAM_COUNTS("PasswordManager.ExportedPasswordsPerUserInCSV",
410 password_list.size()); 410 password_list.size());
411 password_manager::PasswordExporter::Export( 411 password_manager::PasswordExporter::Export(
412 path, password_list, content::BrowserThread::GetTaskRunnerForThread( 412 path, password_list, content::BrowserThread::GetTaskRunnerForThread(
413 content::BrowserThread::FILE) 413 content::BrowserThread::FILE)
414 .get()); 414 .get());
415 } 415 }
416 416
417 } // namespace options 417 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/manage_profile_handler.cc ('k') | chrome/browser/ui/webui/options/sync_setup_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698