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

Side by Side Diff: webkit/tools/test_shell/test_shell.cc

Issue 2861042: Deprecate more old filepath functions. (Closed)
Patch Set: Created 10 years, 5 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
« no previous file with comments | « views/drag_utils.cc ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #undef LOG 5 #undef LOG
6 6
7 #include "webkit/tools/test_shell/test_shell.h" 7 #include "webkit/tools/test_shell/test_shell.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 } 766 }
767 767
768 bool GetPluginFinderURL(std::string* plugin_finder_url) { 768 bool GetPluginFinderURL(std::string* plugin_finder_url) {
769 return false; 769 return false;
770 } 770 }
771 771
772 bool IsDefaultPluginEnabled() { 772 bool IsDefaultPluginEnabled() {
773 FilePath exe_path; 773 FilePath exe_path;
774 774
775 if (PathService::Get(base::FILE_EXE, &exe_path)) { 775 if (PathService::Get(base::FILE_EXE, &exe_path)) {
776 std::wstring exe_name = file_util::GetFilenameFromPath( 776 std::wstring exe_name = exe_path.BaseName().ToWStringHack();
777 exe_path.ToWStringHack());
778 if (StartsWith(exe_name, L"test_shell_tests", false)) 777 if (StartsWith(exe_name, L"test_shell_tests", false))
779 return true; 778 return true;
780 } 779 }
781 return false; 780 return false;
782 } 781 }
783 782
784 bool IsProtocolSupportedForMedia(const GURL& url) { 783 bool IsProtocolSupportedForMedia(const GURL& url) {
785 if (url.SchemeIsFile() || 784 if (url.SchemeIsFile() ||
786 url.SchemeIs("http") || 785 url.SchemeIs("http") ||
787 url.SchemeIs("https") || 786 url.SchemeIs("https") ||
(...skipping 16 matching lines...) Expand all
804 803
805 void ClearCache() { 804 void ClearCache() {
806 // Used in benchmarking, Ignored for test_shell. 805 // Used in benchmarking, Ignored for test_shell.
807 } 806 }
808 807
809 std::string GetProductVersion() { 808 std::string GetProductVersion() {
810 return std::string("Chrome/0.0.0.0"); 809 return std::string("Chrome/0.0.0.0");
811 } 810 }
812 811
813 } // namespace webkit_glue 812 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « views/drag_utils.cc ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698