| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/sync/sync_setup_flow.h" | 5 #include "chrome/browser/sync/sync_setup_flow.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/platform_util.h" | 14 #include "chrome/browser/platform_util.h" |
| 15 #include "chrome/browser/prefs/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/renderer_host/render_view_host.h" | |
| 18 #include "chrome/browser/sync/profile_sync_service.h" | 17 #include "chrome/browser/sync/profile_sync_service.h" |
| 19 #include "chrome/browser/tab_contents/tab_contents.h" | |
| 20 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
| 21 #include "chrome/browser/ui/browser_dialogs.h" | 19 #include "chrome/browser/ui/browser_dialogs.h" |
| 22 #include "chrome/browser/ui/browser_list.h" | 20 #include "chrome/browser/ui/browser_list.h" |
| 23 #include "chrome/common/net/gaia/google_service_auth_error.h" | 21 #include "chrome/common/net/gaia/google_service_auth_error.h" |
| 24 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
| 23 #include "content/browser/renderer_host/render_view_host.h" |
| 24 #include "content/browser/tab_contents/tab_contents.h" |
| 25 #include "content/browser/webui/web_ui_util.h" | 25 #include "content/browser/webui/web_ui_util.h" |
| 26 #include "grit/locale_settings.h" | 26 #include "grit/locale_settings.h" |
| 27 #include "ui/base/l10n/l10n_font_util.h" | 27 #include "ui/base/l10n/l10n_font_util.h" |
| 28 #include "ui/gfx/font.h" | 28 #include "ui/gfx/font.h" |
| 29 | 29 |
| 30 // XPath expression for finding specific iframes. | 30 // XPath expression for finding specific iframes. |
| 31 static const wchar_t* kLoginIFrameXPath = L"//iframe[@id='login']"; | 31 static const wchar_t* kLoginIFrameXPath = L"//iframe[@id='login']"; |
| 32 static const wchar_t* kChooseDataTypesIFrameXPath = | 32 static const wchar_t* kChooseDataTypesIFrameXPath = |
| 33 L"//iframe[@id='configure']"; | 33 L"//iframe[@id='configure']"; |
| 34 static const wchar_t* kPassphraseIFrameXPath = | 34 static const wchar_t* kPassphraseIFrameXPath = |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 DisablePasswordSync(service_); | 778 DisablePasswordSync(service_); |
| 779 } else if (option == "google") { | 779 } else if (option == "google") { |
| 780 // Implicit passphrase already set up. | 780 // Implicit passphrase already set up. |
| 781 Advance(SyncSetupWizard::DONE); | 781 Advance(SyncSetupWizard::DONE); |
| 782 } | 782 } |
| 783 } | 783 } |
| 784 | 784 |
| 785 void SyncSetupFlow::OnGoToDashboard() { | 785 void SyncSetupFlow::OnGoToDashboard() { |
| 786 BrowserList::GetLastActive()->OpenPrivacyDashboardTabAndActivate(); | 786 BrowserList::GetLastActive()->OpenPrivacyDashboardTabAndActivate(); |
| 787 } | 787 } |
| OLD | NEW |