OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser_signin.h" | 5 #include "chrome/browser/browser_signin.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/singleton.h" | 14 #include "base/singleton.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/browser_thread.h" | 17 #include "chrome/browser/browser_thread.h" |
18 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 18 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
19 #include "chrome/browser/dom_ui/constrained_html_ui.h" | 19 #include "chrome/browser/dom_ui/constrained_html_ui.h" |
20 #include "chrome/browser/dom_ui/dom_ui_util.h" | 20 #include "chrome/browser/dom_ui/dom_ui_util.h" |
21 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 21 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
22 #include "chrome/browser/prefs/pref_service.h" | 22 #include "chrome/browser/prefs/pref_service.h" |
23 #include "chrome/browser/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/browser/renderer_host/render_view_host.h" | 24 #include "chrome/browser/renderer_host/render_view_host.h" |
25 #include "chrome/browser/sync/profile_sync_service.h" | 25 #include "chrome/browser/sync/profile_sync_service.h" |
26 #include "chrome/browser/sync/sync_setup_flow.h" | 26 #include "chrome/browser/sync/sync_setup_flow.h" |
27 #include "chrome/browser/tab_contents/tab_contents.h" | 27 #include "chrome/browser/tab_contents/tab_contents.h" |
28 #include "chrome/common/jstemplate_builder.h" | 28 #include "chrome/common/jstemplate_builder.h" |
29 #include "chrome/common/notification_details.h" | 29 #include "chrome/common/notification_details.h" |
30 #include "chrome/common/notification_source.h" | 30 #include "chrome/common/notification_source.h" |
31 #include "chrome/common/notification_type.h" | 31 #include "chrome/common/notification_type.h" |
32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
33 #include "chrome/common/url_constants.h" | 33 #include "chrome/common/url_constants.h" |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 | 323 |
324 void BrowserSignin::ShowSigninTabModal(TabContents* tab_contents) { | 324 void BrowserSignin::ShowSigninTabModal(TabContents* tab_contents) { |
325 // TODO(johnnyg): Need a linux views implementation for ConstrainedHtmlDialog. | 325 // TODO(johnnyg): Need a linux views implementation for ConstrainedHtmlDialog. |
326 #if defined(OS_WIN) || defined(OS_CHROMEOS) || !defined(TOOLKIT_VIEWS) | 326 #if defined(OS_WIN) || defined(OS_CHROMEOS) || !defined(TOOLKIT_VIEWS) |
327 html_dialog_ui_delegate_ = CreateHtmlDialogUI(); | 327 html_dialog_ui_delegate_ = CreateHtmlDialogUI(); |
328 ConstrainedHtmlUI::CreateConstrainedHtmlDialog(profile_, | 328 ConstrainedHtmlUI::CreateConstrainedHtmlDialog(profile_, |
329 html_dialog_ui_delegate_, | 329 html_dialog_ui_delegate_, |
330 tab_contents); | 330 tab_contents); |
331 #endif | 331 #endif |
332 } | 332 } |
OLD | NEW |