| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/translate/translate_service.h" | 5 #include "chrome/browser/translate/translate_service.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // - the devtools (which is considered UI) | 124 // - the devtools (which is considered UI) |
| 125 // - Chrome OS file manager extension | 125 // - Chrome OS file manager extension |
| 126 // - an FTP page (as FTP pages tend to have long lists of filenames that may | 126 // - an FTP page (as FTP pages tend to have long lists of filenames that may |
| 127 // confuse the CLD) | 127 // confuse the CLD) |
| 128 return !url.is_empty() && !url.SchemeIs(content::kChromeUIScheme) && | 128 return !url.is_empty() && !url.SchemeIs(content::kChromeUIScheme) && |
| 129 !url.SchemeIs(content::kChromeDevToolsScheme) && | 129 !url.SchemeIs(content::kChromeDevToolsScheme) && |
| 130 #if defined(OS_CHROMEOS) | 130 #if defined(OS_CHROMEOS) |
| 131 !(url.SchemeIs(extensions::kExtensionScheme) && | 131 !(url.SchemeIs(extensions::kExtensionScheme) && |
| 132 url.DomainIs(file_manager::kFileManagerAppId)) && | 132 url.DomainIs(file_manager::kFileManagerAppId)) && |
| 133 #endif | 133 #endif |
| 134 !url.SchemeIs(content::kFtpScheme); | 134 !url.SchemeIs(url::kFtpScheme); |
| 135 } | 135 } |
| OLD | NEW |