Index: chrome/browser/autofill/autofill_manager_unittest.cc |
diff --git a/chrome/browser/autofill/autofill_manager_unittest.cc b/chrome/browser/autofill/autofill_manager_unittest.cc |
index 45f7ed0acaae5fff5dd7ad84805e2fbcdc1306bf..fa4dfdd269dd0153244f5efa9611be35d7578236 100644 |
--- a/chrome/browser/autofill/autofill_manager_unittest.cc |
+++ b/chrome/browser/autofill/autofill_manager_unittest.cc |
@@ -766,8 +766,9 @@ class IncognitoAutofillManagerTest : public AutofillManagerTest { |
virtual TestingProfile* CreateProfile() OVERRIDE { |
// Create an incognito profile. |
TestingProfile::Builder builder; |
- builder.SetOffTheRecord(); |
- return builder.Build().release(); |
+ scoped_ptr<TestingProfile> profile = builder.Build(); |
+ profile->set_incognito(true); |
+ return profile.release(); |
} |
}; |