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

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

Issue 72004: Relanding the following revisions.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/plugin_tests.cc ('k') | no next file » | 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) 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 #include "v8_proxy.h" 5 #include "v8_proxy.h"
6 #undef LOG 6 #undef LOG
7 7
8 #include "webkit/tools/test_shell/test_shell.h" 8 #include "webkit/tools/test_shell/test_shell.h"
9 9
10 10 #include "base/base_paths.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/debug_on_start.h" 12 #include "base/debug_on_start.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/gfx/png_encoder.h" 15 #include "base/gfx/png_encoder.h"
16 #include "base/gfx/size.h" 16 #include "base/gfx/size.h"
17 #include "base/icu_util.h" 17 #include "base/icu_util.h"
18 #if defined(OS_MACOSX) 18 #if defined(OS_MACOSX)
19 #include "base/mac_util.h" 19 #include "base/mac_util.h"
20 #endif 20 #endif
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 return true; 607 return true;
608 } 608 }
609 #endif 609 #endif
610 610
611 bool GetPluginFinderURL(std::string* plugin_finder_url) { 611 bool GetPluginFinderURL(std::string* plugin_finder_url) {
612 return false; 612 return false;
613 } 613 }
614 614
615 #if !defined(LINUX2) 615 #if !defined(LINUX2)
616 bool IsDefaultPluginEnabled() { 616 bool IsDefaultPluginEnabled() {
617 #if defined(OS_WIN)
618 FilePath exe_path;
619
620 if (PathService::Get(base::FILE_EXE, &exe_path)) {
621 std::wstring exe_name = file_util::GetFilenameFromPath(
622 exe_path.ToWStringHack());
623 if (StartsWith(exe_name, L"test_shell_tests", false))
624 return true;
625 }
626 #endif // OS_WIN
617 return false; 627 return false;
618 } 628 }
619 629
620 std::wstring GetWebKitLocale() { 630 std::wstring GetWebKitLocale() {
621 return L"en-US"; 631 return L"en-US";
622 } 632 }
623 #endif 633 #endif
624 634
625 } // namespace webkit_glue 635 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/plugin_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698