| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/webui/local_discovery/local_discovery_ui_handler.h" | 5 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" | 22 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" |
| 23 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" | 23 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" |
| 24 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
| 25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 26 #include "chrome/browser/signin/signin_manager_factory.h" | 26 #include "chrome/browser/signin/signin_manager_factory.h" |
| 27 #include "chrome/browser/signin/signin_promo.h" | 27 #include "chrome/browser/signin/signin_promo.h" |
| 28 #include "chrome/browser/ui/browser_finder.h" | 28 #include "chrome/browser/ui/browser_finder.h" |
| 29 #include "chrome/browser/ui/browser_tabstrip.h" | 29 #include "chrome/browser/ui/browser_tabstrip.h" |
| 30 #include "chrome/common/chrome_switches.h" | 30 #include "chrome/common/chrome_switches.h" |
| 31 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
| 32 #include "chrome/grit/generated_resources.h" |
| 32 #include "components/cloud_devices/common/cloud_devices_switches.h" | 33 #include "components/cloud_devices/common/cloud_devices_switches.h" |
| 33 #include "components/cloud_devices/common/cloud_devices_urls.h" | 34 #include "components/cloud_devices/common/cloud_devices_urls.h" |
| 34 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 35 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 35 #include "components/signin/core/browser/signin_manager_base.h" | 36 #include "components/signin/core/browser/signin_manager_base.h" |
| 36 #include "content/public/browser/user_metrics.h" | 37 #include "content/public/browser/user_metrics.h" |
| 37 #include "content/public/browser/web_ui.h" | 38 #include "content/public/browser/web_ui.h" |
| 38 #include "content/public/common/page_transition_types.h" | 39 #include "content/public/common/page_transition_types.h" |
| 39 #include "grit/generated_resources.h" | |
| 40 #include "net/base/host_port_pair.h" | 40 #include "net/base/host_port_pair.h" |
| 41 #include "net/base/net_util.h" | 41 #include "net/base/net_util.h" |
| 42 #include "net/base/url_util.h" | 42 #include "net/base/url_util.h" |
| 43 #include "net/http/http_status_code.h" | 43 #include "net/http/http_status_code.h" |
| 44 #include "ui/base/l10n/l10n_util.h" | 44 #include "ui/base/l10n/l10n_util.h" |
| 45 | 45 |
| 46 #if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS) | 46 #if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS) |
| 47 #define CLOUD_PRINT_CONNECTOR_UI_AVAILABLE | 47 #define CLOUD_PRINT_CONNECTOR_UI_AVAILABLE |
| 48 #endif | 48 #endif |
| 49 | 49 |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 scoped_ptr<base::Value> null_value(base::Value::CreateNullValue()); | 781 scoped_ptr<base::Value> null_value(base::Value::CreateNullValue()); |
| 782 | 782 |
| 783 web_ui()->CallJavascriptFunction( | 783 web_ui()->CallJavascriptFunction( |
| 784 "local_discovery.onUnregisteredDeviceUpdate", service_key, *null_value); | 784 "local_discovery.onUnregisteredDeviceUpdate", service_key, *null_value); |
| 785 } | 785 } |
| 786 } | 786 } |
| 787 | 787 |
| 788 #endif // ENABLE_WIFI_BOOTSTRAPPING | 788 #endif // ENABLE_WIFI_BOOTSTRAPPING |
| 789 | 789 |
| 790 } // namespace local_discovery | 790 } // namespace local_discovery |
| OLD | NEW |