| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file defines utility functions for working with strings. | 5 // This file defines utility functions for working with strings. |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/debugger/debugger_contents.h" | 10 #include "chrome/browser/debugger/debugger_contents.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 DebuggerHTMLSource* html_source = new DebuggerHTMLSource(); | 121 DebuggerHTMLSource* html_source = new DebuggerHTMLSource(); |
| 122 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, | 122 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, |
| 123 NewRunnableMethod(&chrome_url_data_manager, | 123 NewRunnableMethod(&chrome_url_data_manager, |
| 124 &ChromeURLDataManager::AddDataSource, | 124 &ChromeURLDataManager::AddDataSource, |
| 125 html_source)); | 125 html_source)); |
| 126 } | 126 } |
| 127 | 127 |
| 128 // static | 128 // static |
| 129 bool DebuggerContents::IsDebuggerUrl(const GURL& url) { | 129 bool DebuggerContents::IsDebuggerUrl(const GURL& url) { |
| 130 if (url.SchemeIs("chrome-resource") && url.host() == "debugger") | 130 if (url.SchemeIs("chrome") && url.host() == "debugger") |
| 131 return true; | 131 return true; |
| 132 return false; | 132 return false; |
| 133 } | 133 } |
| 134 | 134 |
| OLD | NEW |