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

Side by Side Diff: rlz/lib/rlz_lib.cc

Issue 292983003: Use different Access Point on iOS for phone and tablet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « rlz/lib/rlz_enums.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // A library to manage RLZ information for access-points shared 5 // A library to manage RLZ information for access-points shared
6 // across different client applications. 6 // across different client applications.
7 7
8 #include "rlz/lib/rlz_lib.h" 8 #include "rlz/lib/rlz_lib.h"
9 9
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 12 matching lines...) Expand all
23 rlz_lib::AccessPoint access_point; 23 rlz_lib::AccessPoint access_point;
24 rlz_lib::Event event_type; 24 rlz_lib::Event event_type;
25 }; 25 };
26 26
27 // Helper functions 27 // Helper functions
28 28
29 bool IsAccessPointSupported(rlz_lib::AccessPoint point) { 29 bool IsAccessPointSupported(rlz_lib::AccessPoint point) {
30 switch (point) { 30 switch (point) {
31 case rlz_lib::NO_ACCESS_POINT: 31 case rlz_lib::NO_ACCESS_POINT:
32 case rlz_lib::LAST_ACCESS_POINT: 32 case rlz_lib::LAST_ACCESS_POINT:
33 case rlz_lib::CHROME_IOS_RESERVED:
34 33
35 case rlz_lib::MOBILE_IDLE_SCREEN_BLACKBERRY: 34 case rlz_lib::MOBILE_IDLE_SCREEN_BLACKBERRY:
36 case rlz_lib::MOBILE_IDLE_SCREEN_WINMOB: 35 case rlz_lib::MOBILE_IDLE_SCREEN_WINMOB:
37 case rlz_lib::MOBILE_IDLE_SCREEN_SYMBIAN: 36 case rlz_lib::MOBILE_IDLE_SCREEN_SYMBIAN:
38 // These AP's are never available on Windows PCs. 37 // These AP's are never available on Windows PCs.
39 return false; 38 return false;
40 39
41 case rlz_lib::IE_DEFAULT_SEARCH: 40 case rlz_lib::IE_DEFAULT_SEARCH:
42 case rlz_lib::IE_HOME_PAGE: 41 case rlz_lib::IE_HOME_PAGE:
43 case rlz_lib::IETB_SEARCH_BOX: 42 case rlz_lib::IETB_SEARCH_BOX:
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 if (cgi_string.size() >= cgi_size) 642 if (cgi_string.size() >= cgi_size)
644 return false; 643 return false;
645 644
646 strncpy(cgi, cgi_string.c_str(), cgi_size); 645 strncpy(cgi, cgi_string.c_str(), cgi_size);
647 cgi[cgi_size - 1] = 0; 646 cgi[cgi_size - 1] = 0;
648 647
649 return true; 648 return true;
650 } 649 }
651 650
652 } // namespace rlz_lib 651 } // namespace rlz_lib
OLDNEW
« no previous file with comments | « rlz/lib/rlz_enums.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698