#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
+#include "chrome/grit/generated_resources.h"
#include "components/google/core/browser/google_util.h"
#include "components/infobars/core/infobar.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "google_apis/gaia/gaia_constants.h"
#include "google_apis/gaia/gaia_urls.h"
#include "google_apis/gaia/ubertoken_fetcher.h"
-#include "grit/chromium_strings.h"
-#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "net/base/escape.h"
#include "net/url_request/url_request.h"
private:
// Overriden from UbertokenConsumer:
- virtual void OnUbertokenSuccess(const std::string& token) OVERRIDE;
- virtual void OnUbertokenFailure(const GoogleServiceAuthError& error) OVERRIDE;
+ virtual void OnUbertokenSuccess(const std::string& token) override;
+ virtual void OnUbertokenFailure(const GoogleServiceAuthError& error) override;
// Implementation of content::WebContentsObserver
- virtual void WebContentsDestroyed() OVERRIDE;
+ virtual void WebContentsDestroyed() override;
// Redirect tab to MergeSession URL, logging the user in and navigating
// to the desired page.
SigninManagerFactory::GetInstance()->GetForProfile(profile);
ubertoken_fetcher_.reset(new UbertokenFetcher(token_service,
this,
+ GaiaConstants::kChromeSource,
profile->GetRequestContext()));
ubertoken_fetcher_->StartFetchingToken(
signin_manager->GetAuthenticatedAccountId());
web_contents()->GetController().LoadURL(
GaiaUrls::GetInstance()->merge_session_url().Resolve(
"?source=chrome&uberauth=" + token + "&" + args_),
- content::Referrer(), content::PAGE_TRANSITION_AUTO_BOOKMARK,
+ content::Referrer(), ui::PAGE_TRANSITION_AUTO_BOOKMARK,
std::string());
}
return true;
}
-void AutoLoginInfoBarDelegate::GoogleSignedOut(const std::string& username) {
+void AutoLoginInfoBarDelegate::GoogleSignedOut(
+ const std::string& account_id,
+ const std::string& username) {
infobar()->RemoveSelf();
}