 Chromium Code Reviews
 Chromium Code Reviews Issue 5955001:
  Remove chromoting host registration from service process. More IPCs to control  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 5955001:
  Remove chromoting host registration from service process. More IPCs to control  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| 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/service/cloud_print/cloud_print_proxy.h" | 5 #include "chrome/service/cloud_print/cloud_print_proxy.h" | 
| 6 | 6 | 
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" | 
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" | 
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" | 
| 10 #include "base/values.h" | 10 #include "base/values.h" | 
| 11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" | 
| 12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" | 
| 13 #include "chrome/service/cloud_print/cloud_print_consts.h" | 13 #include "chrome/service/cloud_print/cloud_print_consts.h" | 
| 14 #include "chrome/service/cloud_print/print_system.h" | 14 #include "chrome/service/cloud_print/print_system.h" | 
| 15 #include "chrome/service/service_process.h" | 15 #include "chrome/service/service_process.h" | 
| 16 #include "chrome/service/service_process_prefs.h" | 16 #include "chrome/service/service_process_prefs.h" | 
| 17 #include "googleurl/src/gurl.h" | |
| 
Alpha Left Google
2010/12/16 21:32:44
why's that?
 
Sergey Ulanov
2010/12/17 00:05:43
Because this file uses GURL. Wouldn't compile with
 | |
| 17 | 18 | 
| 18 // This method is invoked on the IO thread to launch the browser process to | 19 // This method is invoked on the IO thread to launch the browser process to | 
| 19 // display a desktop notification that the Cloud Print token is invalid and | 20 // display a desktop notification that the Cloud Print token is invalid and | 
| 20 // needs re-authentication. | 21 // needs re-authentication. | 
| 21 static void ShowTokenExpiredNotificationInBrowser() { | 22 static void ShowTokenExpiredNotificationInBrowser() { | 
| 22 DCHECK(g_service_process->io_thread()->message_loop_proxy()-> | 23 DCHECK(g_service_process->io_thread()->message_loop_proxy()-> | 
| 23 BelongsToCurrentThread()); | 24 BelongsToCurrentThread()); | 
| 24 FilePath exe_path; | 25 FilePath exe_path; | 
| 25 PathService::Get(base::FILE_EXE, &exe_path); | 26 PathService::Get(base::FILE_EXE, &exe_path); | 
| 26 if (exe_path.empty()) { | 27 if (exe_path.empty()) { | 
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 g_service_process->io_thread()->message_loop_proxy()->PostTask( | 160 g_service_process->io_thread()->message_loop_proxy()->PostTask( | 
| 160 FROM_HERE, NewRunnableFunction(&ShowTokenExpiredNotificationInBrowser)); | 161 FROM_HERE, NewRunnableFunction(&ShowTokenExpiredNotificationInBrowser)); | 
| 161 } | 162 } | 
| 162 | 163 | 
| 163 void CloudPrintProxy::Shutdown() { | 164 void CloudPrintProxy::Shutdown() { | 
| 164 DCHECK(CalledOnValidThread()); | 165 DCHECK(CalledOnValidThread()); | 
| 165 if (backend_.get()) | 166 if (backend_.get()) | 
| 166 backend_->Shutdown(); | 167 backend_->Shutdown(); | 
| 167 backend_.reset(); | 168 backend_.reset(); | 
| 168 } | 169 } | 
| OLD | NEW |