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

Unified Diff: chrome/browser/profiles/profile_manager_browsertest.cc

Issue 10967003: Add desktop type context to most existing instances of FindTabbedBrowser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moving check_deps exception to specific_include_rules after chat with Kai. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/protector/protector_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager_browsertest.cc
diff --git a/chrome/browser/profiles/profile_manager_browsertest.cc b/chrome/browser/profiles/profile_manager_browsertest.cc
index a5293ada398a1b9558773b5a37aeae80cb88f233..c3f411e78764d6e69d3a1eb9d5dbd82bc71d2131 100644
--- a/chrome/browser/profiles/profile_manager_browsertest.cc
+++ b/chrome/browser/profiles/profile_manager_browsertest.cc
@@ -5,6 +5,7 @@
#include "base/bind.h"
#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/ui/host_desktop.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/ui_test_utils.h"
@@ -41,7 +42,8 @@ IN_PROC_BROWSER_TEST_F(ProfileManagerBrowserTest, DeleteSingletonProfile) {
// Delete singleton profile.
FilePath singleton_profile_path = cache.GetPathOfProfileAtIndex(0);
EXPECT_FALSE(singleton_profile_path.empty());
- profile_manager->ScheduleProfileForDeletion(singleton_profile_path);
+ profile_manager->ScheduleProfileForDeletion(singleton_profile_path,
+ chrome::HOST_DESKTOP_TYPE_NATIVE);
// Spin things till profile is actually deleted.
content::RunAllPendingInMessageLoop();
@@ -87,8 +89,10 @@ IN_PROC_BROWSER_TEST_F(ProfileManagerBrowserTest, MAYBE_DeleteAllProfiles) {
FilePath profile_path2 = cache.GetPathOfProfileAtIndex(1);
EXPECT_FALSE(profile_path1.empty());
EXPECT_FALSE(profile_path2.empty());
- profile_manager->ScheduleProfileForDeletion(profile_path1);
- profile_manager->ScheduleProfileForDeletion(profile_path2);
+ profile_manager->ScheduleProfileForDeletion(profile_path1,
+ chrome::HOST_DESKTOP_TYPE_NATIVE);
+ profile_manager->ScheduleProfileForDeletion(profile_path2,
+ chrome::HOST_DESKTOP_TYPE_NATIVE);
// Spin things so deletion can take place.
content::RunAllPendingInMessageLoop();
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/protector/protector_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698