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

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

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Implements common functionality for the Chrome Extensions Cookies API. 5 // Implements common functionality for the Chrome Extensions Cookies API.
6 6
7 #include "chrome/browser/extensions/extension_cookies_helpers.h" 7 #include "chrome/browser/extensions/extension_cookies_helpers.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/extensions/extension_cookies_api_constants.h" 11 #include "chrome/browser/extensions/extension_cookies_api_constants.h"
12 #include "chrome/browser/extensions/extension_tabs_module.h" 12 #include "chrome/browser/extensions/extension_tabs_module.h"
13 #include "chrome/browser/profile.h" 13 #include "chrome/browser/profile.h"
14 #include "chrome/browser/tabs/tab_strip_model.h" 14 #include "chrome/browser/tabs/tab_strip_model.h"
15 #include "chrome/browser/tab_contents_wrapper.h"
16 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
17 #include "chrome/common/extensions/extension.h" 17 #include "chrome/common/extensions/extension.h"
18 #include "chrome/common/url_constants.h" 18 #include "chrome/common/url_constants.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 20
21 namespace keys = extension_cookies_api_constants; 21 namespace keys = extension_cookies_api_constants;
22 22
23 namespace extension_cookies_helpers { 23 namespace extension_cookies_helpers {
24 24
25 static const char kOriginalProfileStoreId[] = "0"; 25 static const char kOriginalProfileStoreId[] = "0";
26 static const char kOffTheRecordProfileStoreId[] = "1"; 26 static const char kOffTheRecordProfileStoreId[] = "1";
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 sub_domain.length() >= filter_value.length();) { 178 sub_domain.length() >= filter_value.length();) {
179 if (sub_domain == filter_value) 179 if (sub_domain == filter_value)
180 return true; 180 return true;
181 const size_t next_dot = sub_domain.find('.', 1); // Skip over leading dot. 181 const size_t next_dot = sub_domain.find('.', 1); // Skip over leading dot.
182 sub_domain.erase(0, next_dot); 182 sub_domain.erase(0, next_dot);
183 } 183 }
184 return false; 184 return false;
185 } 185 }
186 186
187 } // namespace extension_cookies_helpers 187 } // namespace extension_cookies_helpers
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_clipboard_api.cc ('k') | chrome/browser/extensions/extension_devtools_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698