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

Side by Side Diff: chrome_frame/test/net/fake_external_tab.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome_frame/test/mock_ie_event_sink_actions.h ('k') | chrome_frame/test/test_scrubber.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_frame/test/net/fake_external_tab.h" 5 #include "chrome_frame/test/net/fake_external_tab.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 #include <atlcom.h> 8 #include <atlcom.h>
9 #include <exdisp.h> 9 #include <exdisp.h>
10 #include <Winsock2.h> 10 #include <Winsock2.h>
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 } else { 473 } else {
474 EnumChildWindows(hwnd, EnumChildren, param); 474 EnumChildWindows(hwnd, EnumChildren, param);
475 } 475 }
476 476
477 return TRUE; 477 return TRUE;
478 } 478 }
479 479
480 FakeExternalTab::FakeExternalTab() { 480 FakeExternalTab::FakeExternalTab() {
481 user_data_dir_ = chrome_frame_test::GetProfilePathForIE(); 481 user_data_dir_ = chrome_frame_test::GetProfilePathForIE();
482 482
483 if (file_util::PathExists(user_data_dir_)) { 483 if (base::PathExists(user_data_dir_)) {
484 VLOG(1) << __FUNCTION__ << " deleting IE Profile user data directory " 484 VLOG(1) << __FUNCTION__ << " deleting IE Profile user data directory "
485 << user_data_dir_.value(); 485 << user_data_dir_.value();
486 bool deleted = base::Delete(user_data_dir_, true); 486 bool deleted = base::Delete(user_data_dir_, true);
487 LOG_IF(ERROR, !deleted) << "Failed to delete user data directory directory " 487 LOG_IF(ERROR, !deleted) << "Failed to delete user data directory directory "
488 << user_data_dir_.value(); 488 << user_data_dir_.value();
489 } 489 }
490 490
491 PathService::Get(chrome::DIR_USER_DATA, &overridden_user_dir_); 491 PathService::Get(chrome::DIR_USER_DATA, &overridden_user_dir_);
492 PathService::Override(chrome::DIR_USER_DATA, user_data_dir_); 492 PathService::Override(chrome::DIR_USER_DATA, user_data_dir_);
493 } 493 }
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 content::InitializeSandboxInfo(&sandbox_info); 987 content::InitializeSandboxInfo(&sandbox_info);
988 FakeMainDelegate delegate; 988 FakeMainDelegate delegate;
989 content::ContentMain( 989 content::ContentMain(
990 reinterpret_cast<HINSTANCE>(GetModuleHandle(NULL)), 990 reinterpret_cast<HINSTANCE>(GetModuleHandle(NULL)),
991 &sandbox_info, 991 &sandbox_info,
992 &delegate); 992 &delegate);
993 993
994 // Note: In debug builds, we ExitProcess during PostDestroyThreads. 994 // Note: In debug builds, we ExitProcess during PostDestroyThreads.
995 return g_test_suite->test_result(); 995 return g_test_suite->test_result();
996 } 996 }
OLDNEW
« no previous file with comments | « chrome_frame/test/mock_ie_event_sink_actions.h ('k') | chrome_frame/test/test_scrubber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698