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

Side by Side Diff: Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp

Issue 13643002: Rename LOG() to LOG_INFO() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebase Created 7 years, 8 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 /* 1 /*
2 * Copyright (C) 2007, 2008, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2012, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 } 578 }
579 579
580 DatabaseSet* databaseSet = nameMap->get(name); 580 DatabaseSet* databaseSet = nameMap->get(name);
581 if (!databaseSet) { 581 if (!databaseSet) {
582 databaseSet = new DatabaseSet; 582 databaseSet = new DatabaseSet;
583 nameMap->set(name.isolatedCopy(), databaseSet); 583 nameMap->set(name.isolatedCopy(), databaseSet);
584 } 584 }
585 585
586 databaseSet->add(database); 586 databaseSet->add(database);
587 587
588 LOG(StorageAPI, "Added open Database %s (%p)\n", database->stringIdentif ier().ascii().data(), database); 588 LOG_INFO(StorageAPI, "Added open Database %s (%p)\n", database->stringId entifier().ascii().data(), database);
589 } 589 }
590 } 590 }
591 591
592 void DatabaseTracker::removeOpenDatabase(DatabaseBackendBase* database) 592 void DatabaseTracker::removeOpenDatabase(DatabaseBackendBase* database)
593 { 593 {
594 if (!database) 594 if (!database)
595 return; 595 return;
596 596
597 { 597 {
598 MutexLocker openDatabaseMapLock(m_openDatabaseMapGuard); 598 MutexLocker openDatabaseMapLock(m_openDatabaseMapGuard);
(...skipping 11 matching lines...) Expand all
610 } 610 }
611 611
612 DatabaseSet* databaseSet = nameMap->get(name); 612 DatabaseSet* databaseSet = nameMap->get(name);
613 if (!databaseSet) { 613 if (!databaseSet) {
614 ASSERT_NOT_REACHED(); 614 ASSERT_NOT_REACHED();
615 return; 615 return;
616 } 616 }
617 617
618 databaseSet->remove(database); 618 databaseSet->remove(database);
619 619
620 LOG(StorageAPI, "Removed open Database %s (%p)\n", database->stringIdent ifier().ascii().data(), database); 620 LOG_INFO(StorageAPI, "Removed open Database %s (%p)\n", database->string Identifier().ascii().data(), database);
621 621
622 if (!databaseSet->isEmpty()) 622 if (!databaseSet->isEmpty())
623 return; 623 return;
624 624
625 nameMap->remove(name); 625 nameMap->remove(name);
626 delete databaseSet; 626 delete databaseSet;
627 627
628 if (!nameMap->isEmpty()) 628 if (!nameMap->isEmpty())
629 return; 629 return;
630 630
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 if (!theTracker.m_client) 1184 if (!theTracker.m_client)
1185 return; 1185 return;
1186 1186
1187 for (unsigned i = 0; i < notifications.size(); ++i) 1187 for (unsigned i = 0; i < notifications.size(); ++i)
1188 theTracker.m_client->dispatchDidModifyDatabase(notifications[i].first.ge t(), notifications[i].second); 1188 theTracker.m_client->dispatchDidModifyDatabase(notifications[i].first.ge t(), notifications[i].second);
1189 } 1189 }
1190 1190
1191 1191
1192 } // namespace WebCore 1192 } // namespace WebCore
1193 #endif 1193 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/Modules/webdatabase/DatabaseThread.cpp ('k') | Source/WebCore/Modules/webdatabase/SQLStatementBackend.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698