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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 11308024: Fixing guest processes to use the proper storage partition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment to test. Created 8 years, 2 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/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 3920aecdebd54c683b05eb1184b83dcb7d11b040..384448711c65a537b5971e799a47ad37bbaf0433 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -9,6 +9,7 @@
#include "base/file_util.h"
#include "base/logging.h"
#include "base/stl_util.h"
+#include "base/string_util.h"
#include "base/threading/worker_pool.h"
#include "chrome/browser/api/prefs/pref_member.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
@@ -487,7 +488,7 @@ ProfileImplIOData::InitializeAppRequestContext(
protocol_handler_interceptor) const {
// If this is for a guest process, we should not persist cookies and http
// cache.
- bool is_guest_process = (app_id.find("guest-") != std::string::npos);
+ bool is_guest_process = StartsWithASCII(app_id, "guest-", true);
Nico 2012/10/31 01:26:05 Also, it looks like "guest-" is scattered about in
// Copy most state from the main context.
AppRequestContext* context = new AppRequestContext(load_time_stats());

Powered by Google App Engine
This is Rietveld 408576698