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 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/ui/browser_list.h" | 30 #include "chrome/browser/ui/browser_list.h" |
31 #include "chrome/browser/ui/browser_navigator.h" | 31 #include "chrome/browser/ui/browser_navigator.h" |
32 #include "chrome/browser/ui/browser_tabstrip.h" | 32 #include "chrome/browser/ui/browser_tabstrip.h" |
33 #include "chrome/browser/ui/browser_window.h" | 33 #include "chrome/browser/ui/browser_window.h" |
34 #include "chrome/browser/ui/chrome_pages.h" | 34 #include "chrome/browser/ui/chrome_pages.h" |
35 #include "chrome/browser/ui/sync/one_click_signin_sync_observer.h" | 35 #include "chrome/browser/ui/sync/one_click_signin_sync_observer.h" |
36 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 36 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
37 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 37 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
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 "chrome/grit/chromium_strings.h" |
| 41 #include "chrome/grit/generated_resources.h" |
40 #include "components/signin/core/browser/signin_manager.h" | 42 #include "components/signin/core/browser/signin_manager.h" |
41 #include "components/signin/core/browser/signin_metrics.h" | 43 #include "components/signin/core/browser/signin_metrics.h" |
42 #include "components/signin/core/common/profile_management_switches.h" | 44 #include "components/signin/core/common/profile_management_switches.h" |
43 #include "components/sync_driver/sync_prefs.h" | 45 #include "components/sync_driver/sync_prefs.h" |
44 #include "grit/chromium_strings.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 | 48 |
49 namespace { | 49 namespace { |
50 | 50 |
51 // 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 |
52 // screen. | 52 // screen. |
53 // Hence, | 53 // Hence, |
54 // (a) existing enumerated constants should never be deleted or reordered, and | 54 // (a) existing enumerated constants should never be deleted or reordered, and |
55 // (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. |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 false /* user_gesture */); | 610 false /* user_gesture */); |
611 } | 611 } |
612 | 612 |
613 void OneClickSigninSyncStarter::LoadContinueUrl() { | 613 void OneClickSigninSyncStarter::LoadContinueUrl() { |
614 web_contents()->GetController().LoadURL( | 614 web_contents()->GetController().LoadURL( |
615 continue_url_, | 615 continue_url_, |
616 content::Referrer(), | 616 content::Referrer(), |
617 content::PAGE_TRANSITION_AUTO_TOPLEVEL, | 617 content::PAGE_TRANSITION_AUTO_TOPLEVEL, |
618 std::string()); | 618 std::string()); |
619 } | 619 } |
OLD | NEW |