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

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

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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 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/identity_internals_ui.h" 5 #include "chrome/browser/ui/webui/identity_internals_ui.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/i18n/time_formatting.h" 11 #include "base/i18n/time_formatting.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/extensions/api/identity/identity_api.h" 14 #include "chrome/browser/extensions/api/identity/identity_api.h"
15 #include "chrome/browser/extensions/extension_service.h" 15 #include "chrome/browser/extensions/extension_service.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
18 #include "chrome/grit/generated_resources.h"
18 #include "content/public/browser/web_ui.h" 19 #include "content/public/browser/web_ui.h"
19 #include "content/public/browser/web_ui_controller.h" 20 #include "content/public/browser/web_ui_controller.h"
20 #include "content/public/browser/web_ui_data_source.h" 21 #include "content/public/browser/web_ui_data_source.h"
21 #include "content/public/browser/web_ui_message_handler.h" 22 #include "content/public/browser/web_ui_message_handler.h"
22 #include "extensions/browser/extension_system.h" 23 #include "extensions/browser/extension_system.h"
23 #include "google_apis/gaia/gaia_auth_fetcher.h" 24 #include "google_apis/gaia/gaia_auth_fetcher.h"
24 #include "google_apis/gaia/gaia_constants.h" 25 #include "google_apis/gaia/gaia_constants.h"
25 #include "grit/browser_resources.h" 26 #include "grit/browser_resources.h"
26 #include "grit/generated_resources.h"
27 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
28 28
29 namespace { 29 namespace {
30 30
31 // Properties of the Javascript object representing a token. 31 // Properties of the Javascript object representing a token.
32 const char kExtensionId[] = "extensionId"; 32 const char kExtensionId[] = "extensionId";
33 const char kExtensionName[] = "extensionName"; 33 const char kExtensionName[] = "extensionName";
34 const char kScopes[] = "scopes"; 34 const char kScopes[] = "scopes";
35 const char kStatus[] = "status"; 35 const char kStatus[] = "status";
36 const char kTokenExpirationTime[] = "expirationTime"; 36 const char kTokenExpirationTime[] = "expirationTime";
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 html_source->AddResourcePath("identity_internals.js", 305 html_source->AddResourcePath("identity_internals.js",
306 IDR_IDENTITY_INTERNALS_JS); 306 IDR_IDENTITY_INTERNALS_JS);
307 html_source->SetDefaultResource(IDR_IDENTITY_INTERNALS_HTML); 307 html_source->SetDefaultResource(IDR_IDENTITY_INTERNALS_HTML);
308 308
309 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), html_source); 309 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), html_source);
310 310
311 web_ui->AddMessageHandler(new IdentityInternalsUIMessageHandler()); 311 web_ui->AddMessageHandler(new IdentityInternalsUIMessageHandler());
312 } 312 }
313 313
314 IdentityInternalsUI::~IdentityInternalsUI() {} 314 IdentityInternalsUI::~IdentityInternalsUI() {}
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/history_ui.cc ('k') | chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698