Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4400)

Unified Diff: chrome/service/cloud_print/cloud_print_proxy.cc

Issue 1078213004: Remove --check-cloud-print-connector-policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sat Apr 11 02:29:11 PDT 2015 Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/service/cloud_print/cloud_print_proxy.h ('k') | chrome/service/service_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_proxy.cc
diff --git a/chrome/service/cloud_print/cloud_print_proxy.cc b/chrome/service/cloud_print/cloud_print_proxy.cc
index ccf930fbe3b165a7f1becb22157644655baf5bae..ab0eb32d25e67ac1befb4ad12998299e8bb43055 100644
--- a/chrome/service/cloud_print/cloud_print_proxy.cc
+++ b/chrome/service/cloud_print/cloud_print_proxy.cc
@@ -22,50 +22,6 @@
#include "google_apis/google_api_keys.h"
#include "url/gurl.h"
-namespace {
-
-#if !defined(OS_MACOSX)
-void LaunchBrowserProcessWithSwitch(const std::string& switch_string) {
- DCHECK(g_service_process->io_thread()->message_loop_proxy()->
- BelongsToCurrentThread());
- base::FilePath exe_path;
- PathService::Get(base::FILE_EXE, &exe_path);
- if (exe_path.empty()) {
- NOTREACHED() << "Unable to get browser process binary name.";
- }
- base::CommandLine cmd_line(exe_path);
-
- // Propagate an explicit --user-data-dir value if one was given. The new
- // browser process will pick up a policy override during initialization.
- const base::CommandLine& process_command_line =
- *base::CommandLine::ForCurrentProcess();
- base::FilePath user_data_dir =
- process_command_line.GetSwitchValuePath(switches::kUserDataDir);
- if (!user_data_dir.empty())
- cmd_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir);
- cmd_line.AppendSwitch(switch_string);
-
-#if defined(OS_POSIX) && !defined(OS_MACOSX)
- base::Process process = base::LaunchProcess(cmd_line, base::LaunchOptions());
- if (process.IsValid())
- base::EnsureProcessGetsReaped(process.Pid());
-#else
- base::LaunchOptions launch_options;
-#if defined(OS_WIN)
- launch_options.force_breakaway_from_job_ = true;
-#endif // OS_WIN
- base::LaunchProcess(cmd_line, launch_options);
-#endif
-}
-
-void CheckCloudPrintProxyPolicyInBrowser() {
- LaunchBrowserProcessWithSwitch(switches::kCheckCloudPrintConnectorPolicy);
-}
-
-#endif // !OS_MACOSX
-
-} // namespace
-
namespace cloud_print {
CloudPrintProxy::CloudPrintProxy()
@@ -216,13 +172,6 @@ void CloudPrintProxy::GetPrinters(std::vector<std::string>* printers) {
printers->push_back(printer_list[i].printer_name);
}
-void CloudPrintProxy::CheckCloudPrintProxyPolicy() {
-#if !defined(OS_MACOSX)
- g_service_process->io_thread()->message_loop_proxy()->PostTask(
- FROM_HERE, base::Bind(&CheckCloudPrintProxyPolicyInBrowser));
-#endif
-}
-
void CloudPrintProxy::OnAuthenticated(
const std::string& robot_oauth_refresh_token,
const std::string& robot_email,
« no previous file with comments | « chrome/service/cloud_print/cloud_print_proxy.h ('k') | chrome/service/service_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698