text: ﻿define([
      'foreground/model/prompt',
      'foreground/view/prompt/promptContentView',
      'foreground/view/prompt/promptView'
  ], function (Prompt, PromptContentView, PromptView) {
      'use strict';
  
      var GoogleSignInPromptView = PromptView.extend({
          id: 'googleSignInPrompt',
          signInManager: null,
          
          initialize: function () {
              this.model =  new Prompt({
                  title: chrome.i18n.getMessage('signInToGoogle'),
                  reminderProperty: 'remindGoogleSignIn',
                  alwaysSaveReminder: true
              });
              
              this.contentView = new PromptContentView({
                  template: _.template(chrome.i18n.getMessage('googleSignInMessage'))
              });
  
              this.signInManager = Streamus.backgroundPage.signInManager;
  
              PromptView.prototype.initialize.apply(this, arguments);
          },
          
          onSubmit: function () {
              this.signInManager.set('needGoogleSignIn', false);
          }
      });
  
      return GoogleSignInPromptView;
  });