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

Side by Side Diff: chrome/browser/extensions/api/push_messaging/push_messaging_api.cc

Issue 149213003: Cleanup: Fix some lint/style errors in extensions code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extensions/api/push_messaging/push_messaging_api.h" 5 #include "chrome/browser/extensions/api/push_messaging/push_messaging_api.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
26 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" 26 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
27 #include "chrome/common/extensions/api/push_messaging.h" 27 #include "chrome/common/extensions/api/push_messaging.h"
28 #include "content/public/browser/browser_thread.h" 28 #include "content/public/browser/browser_thread.h"
29 #include "content/public/browser/notification_details.h" 29 #include "content/public/browser/notification_details.h"
30 #include "content/public/browser/notification_source.h" 30 #include "content/public/browser/notification_source.h"
31 #include "extensions/browser/event_router.h" 31 #include "extensions/browser/event_router.h"
32 #include "extensions/common/extension.h" 32 #include "extensions/common/extension.h"
33 #include "extensions/common/permissions/api_permission.h" 33 #include "extensions/common/permissions/api_permission.h"
34 #include "google_apis/gaia/gaia_constants.h" 34 #include "google_apis/gaia/gaia_constants.h"
35 #include "url/gurl.h"
36 35
37 using content::BrowserThread; 36 using content::BrowserThread;
38 37
39 const char kChannelIdSeparator[] = "/"; 38 const char kChannelIdSeparator[] = "/";
40 const char kUserNotSignedIn[] = "The user is not signed in."; 39 const char kUserNotSignedIn[] = "The user is not signed in.";
41 const char kUserAccessTokenFailure[] = 40 const char kUserAccessTokenFailure[] =
42 "Cannot obtain access token for the user."; 41 "Cannot obtain access token for the user.";
43 const int kObfuscatedGaiaIdTimeoutInDays = 30; 42 const int kObfuscatedGaiaIdTimeoutInDays = 30;
44 43
45 namespace extensions { 44 namespace extensions {
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 handler_ = mapper.Pass(); 355 handler_ = mapper.Pass();
357 } 356 }
358 357
359 template <> 358 template <>
360 void ProfileKeyedAPIFactory<PushMessagingAPI>::DeclareFactoryDependencies() { 359 void ProfileKeyedAPIFactory<PushMessagingAPI>::DeclareFactoryDependencies() {
361 DependsOn(ExtensionSystemFactory::GetInstance()); 360 DependsOn(ExtensionSystemFactory::GetInstance());
362 DependsOn(invalidation::InvalidationServiceFactory::GetInstance()); 361 DependsOn(invalidation::InvalidationServiceFactory::GetInstance());
363 } 362 }
364 363
365 } // namespace extensions 364 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/permissions/permissions_api.cc ('k') | chrome/browser/extensions/api/tabs/tabs_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698