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

Side by Side Diff: chrome/browser/translate/translate_service.cc

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 6 years, 6 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_parser.cc ('k') | chrome/browser/translate/translate_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698