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

Side by Side Diff: chrome/browser/ui/webui/inline_login_ui.cc

Issue 47603008: Rename inline sign in URL to chrome-signin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/inline_login_ui.h" 5 #include "chrome/browser/ui/webui/inline_login_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "net/base/url_util.h" 42 #include "net/base/url_util.h"
43 43
44 #if defined(OS_CHROMEOS) 44 #if defined(OS_CHROMEOS)
45 #include "chrome/browser/chromeos/login/oauth2_token_fetcher.h" 45 #include "chrome/browser/chromeos/login/oauth2_token_fetcher.h"
46 #endif 46 #endif
47 47
48 namespace { 48 namespace {
49 49
50 content::WebUIDataSource* CreateWebUIDataSource() { 50 content::WebUIDataSource* CreateWebUIDataSource() {
51 content::WebUIDataSource* source = 51 content::WebUIDataSource* source =
52 content::WebUIDataSource::Create(chrome::kChromeUIInlineLoginHost); 52 content::WebUIDataSource::Create(chrome::kChromeUIChromeSigninHost);
53 source->SetUseJsonJSFormatV2(); 53 source->SetUseJsonJSFormatV2();
54 source->SetJsonPath("strings.js"); 54 source->SetJsonPath("strings.js");
55 55
56 source->SetDefaultResource(IDR_INLINE_LOGIN_HTML); 56 source->SetDefaultResource(IDR_INLINE_LOGIN_HTML);
57 source->AddResourcePath("inline_login.css", IDR_INLINE_LOGIN_CSS); 57 source->AddResourcePath("inline_login.css", IDR_INLINE_LOGIN_CSS);
58 source->AddResourcePath("inline_login.js", IDR_INLINE_LOGIN_JS); 58 source->AddResourcePath("inline_login.js", IDR_INLINE_LOGIN_JS);
59 return source; 59 return source;
60 }; 60 };
61 61
62 #if defined(OS_CHROMEOS) 62 #if defined(OS_CHROMEOS)
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 content::WebUIDataSource::Add(profile, CreateWebUIDataSource()); 327 content::WebUIDataSource::Add(profile, CreateWebUIDataSource());
328 328
329 web_ui->AddMessageHandler(new InlineLoginUIHandler(profile)); 329 web_ui->AddMessageHandler(new InlineLoginUIHandler(profile));
330 // Required for intercepting extension function calls when the page is loaded 330 // Required for intercepting extension function calls when the page is loaded
331 // in a bubble (not a full tab, thus tab helpers are not registered 331 // in a bubble (not a full tab, thus tab helpers are not registered
332 // automatically). 332 // automatically).
333 extensions::TabHelper::CreateForWebContents(web_ui->GetWebContents()); 333 extensions::TabHelper::CreateForWebContents(web_ui->GetWebContents());
334 } 334 }
335 335
336 InlineLoginUI::~InlineLoginUI() {} 336 InlineLoginUI::~InlineLoginUI() {}
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698