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/remoting/remoting_setup_flow.h" | 5 #include "chrome/browser/remoting/remoting_setup_flow.h" |
6 | 6 |
7 #include "app/gfx/font_util.h" | 7 #include "app/gfx/font_util.h" |
8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
9 #include "base/singleton.h" | 9 #include "base/singleton.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/browser.h" | 13 #include "chrome/browser/browser.h" |
14 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
15 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 15 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
16 #include "chrome/browser/dom_ui/dom_ui_util.h" | 16 #include "chrome/browser/dom_ui/dom_ui_util.h" |
17 #include "chrome/browser/platform_util.h" | 17 #include "chrome/browser/platform_util.h" |
18 #include "chrome/browser/pref_service.h" | 18 #include "chrome/browser/prefs/pref_service.h" |
19 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profile.h" |
20 #include "chrome/browser/remoting/remoting_resources_source.h" | 20 #include "chrome/browser/remoting/remoting_resources_source.h" |
21 #include "chrome/browser/remoting/remoting_setup_message_handler.h" | 21 #include "chrome/browser/remoting/remoting_setup_message_handler.h" |
22 #include "chrome/browser/service/service_process_control.h" | 22 #include "chrome/browser/service/service_process_control.h" |
23 #include "chrome/browser/service/service_process_control_manager.h" | 23 #include "chrome/browser/service/service_process_control_manager.h" |
24 #include "chrome/common/net/gaia/gaia_authenticator2.h" | 24 #include "chrome/common/net/gaia/gaia_authenticator2.h" |
25 #include "chrome/common/net/gaia/gaia_constants.h" | 25 #include "chrome/common/net/gaia/gaia_constants.h" |
26 #include "chrome/common/net/gaia/google_service_auth_error.h" | 26 #include "chrome/common/net/gaia/google_service_auth_error.h" |
27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
28 #include "chrome/common/service_process_type.h" | 28 #include "chrome/common/service_process_type.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 // Global function to start the remoting setup dialog. | 195 // Global function to start the remoting setup dialog. |
196 void OpenRemotingSetupDialog(Profile* profile) { | 196 void OpenRemotingSetupDialog(Profile* profile) { |
197 RemotingSetupFlow::Run(profile->GetOriginalProfile()); | 197 RemotingSetupFlow::Run(profile->GetOriginalProfile()); |
198 } | 198 } |
199 | 199 |
200 // TODO(hclam): Need to refcount RemotingSetupFlow. I need to fix | 200 // TODO(hclam): Need to refcount RemotingSetupFlow. I need to fix |
201 // lifetime of objects. | 201 // lifetime of objects. |
202 DISABLE_RUNNABLE_METHOD_REFCOUNT(RemotingSetupFlow); | 202 DISABLE_RUNNABLE_METHOD_REFCOUNT(RemotingSetupFlow); |
203 DISABLE_RUNNABLE_METHOD_REFCOUNT(RemotingSetupMessageHandler); | 203 DISABLE_RUNNABLE_METHOD_REFCOUNT(RemotingSetupMessageHandler); |
OLD | NEW |