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

Side by Side Diff: Source/core/platform/sql/SQLiteDatabase.cpp

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 ASSERT(currentPageSize || !m_db); 172 ASSERT(currentPageSize || !m_db);
173 int64_t newMaxPageCount = currentPageSize ? size / currentPageSize : 0; 173 int64_t newMaxPageCount = currentPageSize ? size / currentPageSize : 0;
174 174
175 MutexLocker locker(m_authorizerLock); 175 MutexLocker locker(m_authorizerLock);
176 enableAuthorizer(false); 176 enableAuthorizer(false);
177 177
178 SQLiteStatement statement(*this, "PRAGMA max_page_count = " + String::number (newMaxPageCount)); 178 SQLiteStatement statement(*this, "PRAGMA max_page_count = " + String::number (newMaxPageCount));
179 statement.prepare(); 179 statement.prepare();
180 if (statement.step() != SQLResultRow) 180 if (statement.step() != SQLResultRow)
181 #if OS(WINDOWS) 181 #if OS(WIN)
182 LOG_ERROR("Failed to set maximum size of database to %I64i bytes", stati c_cast<long long>(size)); 182 LOG_ERROR("Failed to set maximum size of database to %I64i bytes", stati c_cast<long long>(size));
183 #else 183 #else
184 LOG_ERROR("Failed to set maximum size of database to %lli bytes", static _cast<long long>(size)); 184 LOG_ERROR("Failed to set maximum size of database to %lli bytes", static _cast<long long>(size));
185 #endif 185 #endif
186 186
187 enableAuthorizer(true); 187 enableAuthorizer(true);
188 188
189 } 189 }
190 190
191 int SQLiteDatabase::pageSize() 191 int SQLiteDatabase::pageSize()
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 default: 490 default:
491 if (!executeCommand("PRAGMA auto_vacuum = 2")) 491 if (!executeCommand("PRAGMA auto_vacuum = 2"))
492 return false; 492 return false;
493 runVacuumCommand(); 493 runVacuumCommand();
494 error = lastError(); 494 error = lastError();
495 return (error == SQLITE_OK); 495 return (error == SQLITE_OK);
496 } 496 }
497 } 497 }
498 498
499 } // namespace WebCore 499 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/skia/SimpleFontDataSkia.cpp ('k') | Source/core/platform/text/LineEnding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698