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

Unified Diff: chrome/browser/extensions/app_notification_storage.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, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/app_notification_storage.cc
diff --git a/chrome/browser/extensions/app_notification_storage.cc b/chrome/browser/extensions/app_notification_storage.cc
index b2791700cdf7c20154910a029192eba5aa2b9168..9a0d2f8ae93a583a93e83a648d03998c6b756b73 100644
--- a/chrome/browser/extensions/app_notification_storage.cc
+++ b/chrome/browser/extensions/app_notification_storage.cc
@@ -20,6 +20,8 @@ using base::JSONReader;
using base::JSONWriter;
using content::BrowserThread;
+namespace extensions {
+
// A concrete implementation of the AppNotificationStorage interface, using
// LevelDb for backing storage.
class LevelDbAppNotificationStorage : public AppNotificationStorage {
@@ -131,7 +133,7 @@ bool LevelDbAppNotificationStorage::GetExtensionIds(
scoped_ptr<leveldb::Iterator> iter(db_->NewIterator(read_options_));
for (iter->SeekToFirst(); iter->Valid(); iter->Next()) {
std::string key = iter->key().ToString();
- if (extensions::Extension::IdIsValid(key))
+ if (Extension::IdIsValid(key))
result->insert(key);
}
@@ -226,3 +228,5 @@ bool LevelDbAppNotificationStorage::OpenDbIfNeeded(bool create_if_missing) {
db_.reset(db);
return true;
}
+
+} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/app_notification_storage.h ('k') | chrome/browser/extensions/app_notification_storage_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698