#include "components/policy/core/common/policy_namespace.h"
#include "components/policy/core/common/policy_service.h"
#include "components/policy/core/common/policy_switches.h"
+#include "components/signin/core/common/signin_pref_names.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
run_loop_->Quit();
}
- virtual void OnAppWindowIconChanged(apps::AppWindow* app_window) OVERRIDE {}
-
virtual void OnAppWindowRemoved(apps::AppWindow* app_window) OVERRIDE {
if (run_loop_)
run_loop_->Quit();
EXPECT_EQ(GURL(kStartupURLs[i]),
tabs->GetWebContentsAt(i)->GetVisibleURL());
}
+
+ // Verify that the session is not considered to be logged in with a GAIA
+ // account.
+ Profile* profile = GetProfileForTest();
+ ASSERT_TRUE(profile);
+ EXPECT_FALSE(profile->GetPrefs()->HasPrefPath(
+ prefs::kGoogleServicesUsername));
}
IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, FullscreenDisallowed) {
EXPECT_FALSE(user->HasDefaultImage());
EXPECT_EQ(chromeos::User::kExternalImageIndex, user->image_index());
- EXPECT_TRUE(chromeos::test::AreImagesEqual(*policy_image, user->image()));
+ EXPECT_TRUE(chromeos::test::AreImagesEqual(*policy_image, user->GetImage()));
const base::DictionaryValue* images_pref =
g_browser_process->local_state()->GetDictionary("user_image_info");
ASSERT_TRUE(images_pref);
app_window_registry->AddObserver(this);
// Verify that the logout confirmation dialog is not showing.
- ash::internal::LogoutConfirmationController* logout_confirmation_controller =
+ ash::LogoutConfirmationController* logout_confirmation_controller =
ash::Shell::GetInstance()->logout_confirmation_controller();
ASSERT_TRUE(logout_confirmation_controller);
EXPECT_FALSE(logout_confirmation_controller->dialog_for_testing());
EXPECT_TRUE(browser_list->empty());
// Verify that the logout confirmation dialog is showing.
- ash::internal::LogoutConfirmationDialog* dialog =
+ ash::LogoutConfirmationDialog* dialog =
logout_confirmation_controller->dialog_for_testing();
ASSERT_TRUE(dialog);
ASSERT_TRUE(contents);
std::string json;
ASSERT_TRUE(content::ExecuteScriptAndExtractString(contents,
- "var screen = document.getElementById('terms-of-service');"
+ "var screenElement = document.getElementById('terms-of-service');"
"function SendReplyIfDownloadDone() {"
- " if (screen.classList.contains('tos-loading'))"
+ " if (screenElement.classList.contains('tos-loading'))"
" return false;"
" var status = {};"
" status.heading = document.getElementById('tos-heading').textContent;"
" document.getElementById('tos-content-heading').textContent;"
" status.content ="
" document.getElementById('tos-content-main').textContent;"
- " status.error = screen.classList.contains('error');"
+ " status.error = screenElement.classList.contains('error');"
" status.acceptEnabled ="
" !document.getElementById('tos-accept-button').disabled;"
" domAutomationController.send(JSON.stringify(status));"
"var observer = new MutationObserver(SendReplyIfDownloadDone);"
"if (!SendReplyIfDownloadDone()) {"
" var options = { attributes: true, attributeFilter: [ 'class' ] };"
- " observer.observe(screen, options);"
+ " observer.observe(screenElement, options);"
"}",
&json));
scoped_ptr<base::Value> value_ptr(base::JSONReader::Read(json));