| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sync/one_click_signin_sync_starter.h" | 5 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h" | 38 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h" |
| 39 #include "chrome/common/url_constants.h" | 39 #include "chrome/common/url_constants.h" |
| 40 #include "components/signin/core/browser/signin_manager.h" | 40 #include "components/signin/core/browser/signin_manager.h" |
| 41 #include "components/signin/core/browser/signin_metrics.h" | 41 #include "components/signin/core/browser/signin_metrics.h" |
| 42 #include "components/signin/core/common/profile_management_switches.h" | 42 #include "components/signin/core/common/profile_management_switches.h" |
| 43 #include "components/sync_driver/sync_prefs.h" | 43 #include "components/sync_driver/sync_prefs.h" |
| 44 #include "grit/chromium_strings.h" | 44 #include "grit/chromium_strings.h" |
| 45 #include "grit/generated_resources.h" | 45 #include "grit/generated_resources.h" |
| 46 #include "net/url_request/url_request_context_getter.h" | 46 #include "net/url_request/url_request_context_getter.h" |
| 47 #include "ui/base/l10n/l10n_util.h" | 47 #include "ui/base/l10n/l10n_util.h" |
| 48 #include "ui/base/resource/resource_bundle.h" | |
| 49 | 48 |
| 50 namespace { | 49 namespace { |
| 51 | 50 |
| 52 // UMA histogram for tracking what users do when presented with the signin | 51 // UMA histogram for tracking what users do when presented with the signin |
| 53 // screen. | 52 // screen. |
| 54 // Hence, | 53 // Hence, |
| 55 // (a) existing enumerated constants should never be deleted or reordered, and | 54 // (a) existing enumerated constants should never be deleted or reordered, and |
| 56 // (b) new constants should only be appended at the end of the enumeration. | 55 // (b) new constants should only be appended at the end of the enumeration. |
| 57 // | 56 // |
| 58 // Keep this in sync with SigninChoice in histograms.xml. | 57 // Keep this in sync with SigninChoice in histograms.xml. |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 false /* user_gesture */); | 632 false /* user_gesture */); |
| 634 } | 633 } |
| 635 | 634 |
| 636 void OneClickSigninSyncStarter::LoadContinueUrl() { | 635 void OneClickSigninSyncStarter::LoadContinueUrl() { |
| 637 web_contents()->GetController().LoadURL( | 636 web_contents()->GetController().LoadURL( |
| 638 continue_url_, | 637 continue_url_, |
| 639 content::Referrer(), | 638 content::Referrer(), |
| 640 content::PAGE_TRANSITION_AUTO_TOPLEVEL, | 639 content::PAGE_TRANSITION_AUTO_TOPLEVEL, |
| 641 std::string()); | 640 std::string()); |
| 642 } | 641 } |
| OLD | NEW |