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

Side by Side Diff: chrome/browser/extensions/app_notification.cc

Issue 10830036: Moved the AppNotification system into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 4 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
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/app_notification.h" 5 #include "chrome/browser/extensions/app_notification.h"
6 6
7 #include "base/guid.h" 7 #include "base/guid.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace extensions {
13
12 namespace { 14 namespace {
13 15
14 const char* kIsLocalKey = "is_local"; 16 const char* kIsLocalKey = "is_local";
15 const char* kCreationTime= "creation_time"; 17 const char* kCreationTime= "creation_time";
16 const char* kGuidKey = "guid"; 18 const char* kGuidKey = "guid";
17 const char* kExtensionIdKey = "extension_id"; 19 const char* kExtensionIdKey = "extension_id";
18 const char* kTitleKey = "title"; 20 const char* kTitleKey = "title";
19 const char* kBodyKey = "body"; 21 const char* kBodyKey = "body";
20 const char* kLinkUrlKey = "link_url"; 22 const char* kLinkUrlKey = "link_url";
21 const char* kLinkTextKey = "link_text"; 23 const char* kLinkTextKey = "link_text";
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 AppNotificationList* CopyAppNotificationList( 148 AppNotificationList* CopyAppNotificationList(
147 const AppNotificationList& source) { 149 const AppNotificationList& source) {
148 AppNotificationList* copy = new AppNotificationList(); 150 AppNotificationList* copy = new AppNotificationList();
149 151
150 for (AppNotificationList::const_iterator iter = source.begin(); 152 for (AppNotificationList::const_iterator iter = source.begin();
151 iter != source.end(); ++iter) { 153 iter != source.end(); ++iter) {
152 copy->push_back(linked_ptr<AppNotification>(iter->get()->Copy())); 154 copy->push_back(linked_ptr<AppNotification>(iter->get()->Copy()));
153 } 155 }
154 return copy; 156 return copy;
155 } 157 }
158
159 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/app_notification.h ('k') | chrome/browser/extensions/app_notification_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698