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

Side by Side Diff: chrome/browser/ui/webui/ntp/ntp_login_handler.cc

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ntp/ntp_login_handler.h" 5 #include "chrome/browser/ui/webui/ntp/ntp_login_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 13 matching lines...) Expand all
24 #include "chrome/browser/ui/browser.h" 24 #include "chrome/browser/ui/browser.h"
25 #include "chrome/browser/ui/browser_list.h" 25 #include "chrome/browser/ui/browser_list.h"
26 #include "chrome/browser/ui/browser_window.h" 26 #include "chrome/browser/ui/browser_window.h"
27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
28 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" 28 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
29 #include "chrome/browser/ui/webui/web_ui_util.h" 29 #include "chrome/browser/ui/webui/web_ui_util.h"
30 #include "chrome/browser/web_resource/promo_resource_service.h" 30 #include "chrome/browser/web_resource/promo_resource_service.h"
31 #include "chrome/common/chrome_notification_types.h" 31 #include "chrome/common/chrome_notification_types.h"
32 #include "chrome/common/pref_names.h" 32 #include "chrome/common/pref_names.h"
33 #include "chrome/common/url_constants.h" 33 #include "chrome/common/url_constants.h"
34 #include "content/browser/webui/web_ui.h"
34 #include "content/public/browser/notification_details.h" 35 #include "content/public/browser/notification_details.h"
35 #include "content/public/browser/notification_service.h" 36 #include "content/public/browser/notification_service.h"
36 #include "content/public/browser/web_contents.h" 37 #include "content/public/browser/web_contents.h"
37 #include "grit/chromium_strings.h" 38 #include "grit/chromium_strings.h"
38 #include "grit/generated_resources.h" 39 #include "grit/generated_resources.h"
39 #include "net/base/escape.h" 40 #include "net/base/escape.h"
40 #include "skia/ext/image_operations.h" 41 #include "skia/ext/image_operations.h"
41 #include "ui/base/l10n/l10n_util.h" 42 #include "ui/base/l10n/l10n_util.h"
42 #include "ui/gfx/canvas_skia.h" 43 #include "ui/gfx/canvas_skia.h"
43 #include "ui/gfx/image/image.h" 44 #include "ui/gfx/image/image.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))); 253 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME)));
253 values->SetString("login_status_url", 254 values->SetString("login_status_url",
254 google_util::StringAppendGoogleLocaleParam(chrome::kSyncLearnMoreURL)); 255 google_util::StringAppendGoogleLocaleParam(chrome::kSyncLearnMoreURL));
255 values->SetString("login_status_learn_more", 256 values->SetString("login_status_learn_more",
256 l10n_util::GetStringUTF16(IDS_LEARN_MORE)); 257 l10n_util::GetStringUTF16(IDS_LEARN_MORE));
257 values->SetString("login_status_advanced", 258 values->SetString("login_status_advanced",
258 l10n_util::GetStringUTF16(IDS_SYNC_PROMO_NTP_BUBBLE_ADVANCED)); 259 l10n_util::GetStringUTF16(IDS_SYNC_PROMO_NTP_BUBBLE_ADVANCED));
259 values->SetString("login_status_dismiss", 260 values->SetString("login_status_dismiss",
260 l10n_util::GetStringUTF16(IDS_SYNC_PROMO_NTP_BUBBLE_OK)); 261 l10n_util::GetStringUTF16(IDS_SYNC_PROMO_NTP_BUBBLE_OK));
261 } 262 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_login_handler.h ('k') | chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698