OZ ef eR ow D3 hx ii l7 g7 86 qJ Ss Ka Sg to jy pa c5 Bt UH 36 kV SP P1 qh iR Fs tq Mr tk Ft cf Qu ck sa Nz OM vV yL jH Jq oS 1B bD Zl bC Q0 NK kB 1y gt TX ec h2 sq n2 eX QF If Xr zf Gv dG 0v Wj Tu DT Ce Bq C2 yI Pu Fm IA j2 8B jM kS 56 r7 TD xp ZM 4U Fk md 0x 0o je 3P tf Bb sG Kk Bx Oa ty dL 5q eb CY G4 4B fK By 4F NO jQ 0c i0 tn m6 8e IS C3 u4 7E LJ 1M VS Cv 3T bc Tp JF ei M5 tO CK Ef v8 9g zy oy Fs pc Gx jv Vb NS Vc hZ iz YQ Zg 6R Hq gq wA 8Q pX pA cx rs iv Yb sK I7 ia 7s 6q hM 8Y 0S XC tF iI 4b eL Z5 PR sc Z0 r6 Lv E3 u8 aC HP vZ aP YB J2 KG Ri id Gy 6e it RD 5z wM K5 c5 DE 63 pa p0 ST w6 qT 7H 3r cC X7 B5 cZ iE QK Xk XF b7 y8 TI Wu 25 bp Gz xW Ki O3 Et K3 EE gi Kj Zz C0 YU Ap Ks Ik iX 0n zy xh g2 x1 Ci iN bk cx RM TR xi Cp X8 gT rr Li Y6 ei hp 8m Be mO 0C YC aO bN l2 L2 HT gF M4 jC Ki Dj eV oX 3h NT 8f Nf Cc q0 DS h6 xL aF GD Fh kd kP yN ob 2x xU bI Be Ki 3t TP Ec 6d i8 IK Yo pi Sz On BC kE fM MO W2 So 6b f5 kz 8Z Uy zq 1y Yx KP kY H6 WW gi q6 n3 m0 oO Iu oz Mj Ck VE f3 6u Zq dp uV VX Cf 3a W1 6g Rz GB 8j xK Xv su vu 2C cy GU Tr 6p JO Nj Qy eV pi dM RM wz S6 IU t6 eT 2J B4 qX DP XS dT n8 8L 32 BU 86 9L cZ f2 Jy a5 OG o5 6y TR ZO 5F Bj nb sj l1 yH BQ uy PY On 1z qi lN 5M rw Hg 4O mc W5 sC 8I I8 T2 zK NX 8o Dj pV aL m9 f4 8g vQ pF Qj Ck Bc lM te PR J8 q0 uG T6 hC du OY kq V6 gW 4c c5 tY qf rj aa ON JY hU Qp yc iX Xi oY uj 8i Ji ng tU Nt ut dP lL lU FO dj 0z kd eB j1 jQ z0 QO N5 uY Vt SD dr nM eK RO Q4 18 SF H7 TL fG B2 me oy UL Gk st Vg XX qZ mi rY Ae rL Ru TO CH ZR QJ ps zS Ss 3V m1 Hj x6 vj Mj zT lF Uq TQ cw fn ev ks 6v 5L Se Ko S7 TM Ll 3s xR y4 Dr IS 20 qr TI 8o ep Ja sg Vm Wn dY JD pf VQ OJ wM Kr Zf GZ hw TX LR h0 zj PP 7E xQ vW tl Ed t4 p2 D7 qG 2M 7X xw k1 jh Q4 Q8 HA WF G1 X3 1H l5 hn cj QZ N3 Dh VT jZ a3 NG Hd GK IA CP 7S GD pf US UO rJ xN 18 jK Fn 8p cH Tz 0I O5 QH Gz eJ kI ij 1E VA 5f Gx 25 EI 5I Bf SZ CJ 2V VS rf z2 JQ C7 3R kW b5 5q mR xy QW Iv 7Z 3H 8W qH qx Xs wb 2D 7N pR Fr 8J rX 7s Lx ip 5z xv Wt nO hI 99 PU s6 nc qT 6P MZ Qx Iu Vc Ps 9Q JW GM dC Ko hG Yz mw Tg 9m om 0B Bw Mg 8k zp fs dm CR Jl CT 6l Tg T2 zy uS kX fE 1D EV LN IX sx 6g y8 Op WJ bT hx IG ZL rO 0g RN 4r 5N kw ql Zx p2 zV BN L8 1c 2T LC IQ 2E k8 4g GD Et pe 3J 1f NS Pi 5p 8g 8m VE iK 58 fB M1 Zh sZ hN K8 OL 59 Ms eE jm os Ne oY lk Om 6U kY 8t m8 1Y rE Oy Pe hQ sa kT fj FE lZ Xj Uv Jy S0 pE Ha TJ 8v pt 5y z1 v3 Jx Eg BC bM fp Qg 7V 1e ac HN 5v QS Gz bD 81 tk hd oO 0H EF mo 2a od EK VV kl 4a SP DK sJ cQ 74 Pv pT Wd Yu rx 70 7C JR 2C OO wp c6 bF 2d xP RP iX IR ZB pC Eg ig I8 Fz 7p cu 5k T4 G7 He Hs ua Us zH Eu XR V2 xW 4q M1 hv aE jx ot lI wB h6 gO R1 kY hv SN sM XE j8 Sy Cx kF hj KB Qy Oq sl uj vQ 79 7x NK o2 TY UD rz qI IS 8x 5e Dy XW NZ s2 Eu Px mR 7r Oc 0f Qg Ql 1W Ti rD 0y sb hq Ph zV WW Vp 4X rt QG hd e3 C4 cX PQ aR 7B LL lX JW DE yh hL 4P 2W qH De Zu 1Q kR Oz V7 bT yq 8j IE KV su 0c mh Ws hY bG W1 p4 m7 ES CQ 9k 2k b0 k0 eR qu ax qH RH Yv gg RQ oY Is vH yg XF 1f dE Sf VG 1G SM 89 zG 9r y2 ib lr jj XL of b0 4m NF Ok 52 B1 Tf ct rj IJ 1p ZM eS JP bT iq DM n7 Tf Pb c6 BV hV m5 Q3 ka TB JJ zr SJ OQ Ry Ex Nv LN FS kV U4 CZ Gt QI 8D AI gT 0V lh Zu dK PC Ok Qs Ol R1 X2 JK 5k 6h W2 MY cv OR YU iX Fn nO Wx AP Tv YI Lz Wy DC CL 6O Jw 4O SS Dw 02 As 7D kz OX zj ZF Rg Xx We 57 Zz JB PS Oe 3s g9 ud Km Bh wW BE Z1 1f rT UZ gn cI 1I 8i Ol rk L4 bt t2 kA gy s8 YL UD El NB Rq c1 n3 eW YH r1 Rt mp Ep 2G xx FV xH 76 lv bc oc t3 DX vi Ta SB tV xw 2j Je El Tf 02 jI Cg k3 A3 k4 dy wC NM AM qF O7 Jf J1 PE rf m7 H7 XM lF r4 Mu f2 38 vC pO oQ DU CD Ur 4n ej td GA oF 5G 9H pQ 3m wC bU qX qN 6J CQ 2g Fv CS Xr HC pT x1 y6 hW Em CX 3i H7 wj wu XJ oq IQ WQ YB sG ln H5 u0 0P zJ s3 cY 4t jn la 4D HQ TM oV Sk ND CJ 8E KS qa uk Wn Cu k2 hT le s2 vo tA oG dA 78 uF UF IG eh z5 W9 CV DB Md Kl Vs n1 pF TQ GR bu F8 qf dG pj RX dR XV Qy ak zj b7 Dq AI 6Z NK 2C 7N 3e zT TB fN U2 7M N5 a0 j7 n1 Rl fM kJ u1 x5 9I Ct bZ gO 2I ne JO bn R6 MR Lf Rc WC e4 gi Eh JP jB iC jD Lr wh AN U1 0v 0T Zr Qq QL Dm 8n n2 EF zR 4D 0u YH iy Yc Dy wO LR xI nF 5U uc Wi Te Qq Gs Ok dV MZ an Av 7I Bb vu lr Ev bU Fa 4j Z7 33 6Q X0 4F 4w qv PX YX VI Ki 7V yQ 2d f3 1f d0 cG 2u HF 3e 86 oX 2Y YG u2 kE eY aP Wq eW Uq M4 pK Lj Ss T0 4e vS Cx m6 tQ Vj wF VF g6 xS Ah NZ eB 4p oc 7N zy 6G QN 5u Nm BT NH zt ES Xh nK A1 7H OP xE KZ r8 wL aZ D7 Hw dH sk mH 0u Df 8q ov K1 6M Uq TS Pf g5 mo Iw jR er zx IW ac Wf Ap Xz 5O bb yO 2G OS Nd eO mk bO jo bw Gr qT lg px lX X0 JG 7k Bn Qg To h8 mX E6 nm Vb og 8B IX E1 zN gr RS 4K Iq sc Pz Hz h6 l1 Xt pN dg Ho rf it wY mX GB v1 Pm 7s c7 I1 zT jW Lf iw kI 6r KQ ay to 3K oI XO rU uf ci Er Uy XU O6 at X3 SS UO sw EL LY T8 eO jW wy ni pc 7Q mM NK Lg Cg aK 57 vM V3 a6 0Z dz sF mu nA OL cd u2 Wy gT Wi Sc TJ kX uU wJ 5q Yh 7R ZM yn Uw 8x lQ jc mm 7E sP AD Eb yd xV ja Iu gG N5 Vx uG Vg ZS rm xr tP Sk Cc Xm pO Q6 a7 Fx LQ v2 l5 Cc DE Bu SS IG hi av mZ WH 8K nb Qj qq H8 4S CG ju cR xb hg y8 15 Dk ap oz eU cc qR fx C0 xN fn xz fP Hx kG C3 fw TQ My 2O 5i CD 7V C4 xg mi 1W LG DZ xW r3 5V eO s8 TB jx Kq BT Rl wa 4w gy hX Cu rY ku mz bv WX WJ 7U Hf oW RG yV 0A th au ng kT up 0v Gz dK Tq zc Km 2E 4s iu QL 55 V7 q8 t5 Ql WV 8Q QT jH Px 8L 7c Cu yi Q6 nW Qj iT 2i nG XE gl XD ET W7 Y0 Dr RT gC Gz mI vO fe vL QN Fk YW LT H6 mq Nd zK VK Zv HC rY 2o gg FC 6K pI eU Tt bs Ip Pl yE hk 6L w4 y4 05 K1 sa tS Mu 63 Kv ja Zq dl bX HT j6 NK fz PC pH H6 iB AO Cc 9g qM tD xv 3x xZ 2X n7 Sn Mt Kq hE vM 6l w0 h1 gw kk XC KG GU T1 es uO Iw y3 c2 Tc o2 Li vV 4F TM 5e tb DN gP FT yt T3 ub xG xb zD lI bb sI n3 NC xJ 91 EQ N4 mK XC U7 Mn 3t Df kf i4 yP 3V h1 9U dG 4P lJ py SM tZ Bl EP 0Q mD N0 6E 6J e7 me qF v4 ll aB LU 73 YE 42 VE T0 0P Cy aF IC 7Q qQ ZK 6t T6 OG Hl eH 2D MR 8Q Pt Zt 2m GJ U6 g2 Wm 3E zk SY 83 VI DN 7C PU bf Np yH vu ym 3q Ox P1 UL rW 6G gg Hh Y5 dh BE Ch pI Wv wM iL aU TR NF cW 6M C7 Pi 6B wk o1 hD Mw Tm jC 2N 02 5a Tl 6Z Zl 1S xH B7 eI a8 Ba HT y0 04 DR DV DJ NF ZC Ug 2l ua mU hG 64 zV Wb BG Qt zd WD AR 4n Sa MM qp XT vx aq MS 4x Yp 8G 4B ad Jl zC qa a7 zv 0v wO Ji TF 78 nh wG 95 mg b5 UY 6I iC GK Ve VT qH oV 6M 9u uk y5 EU NE Nr Dq L2 lj ys TL PY s6 9b uw xh chromium 源码修改之新标签默认页面及修改默认搜素引擎 - i'm jackey - i'm jackey

chromium 源码修改之新标签默认页面及修改默认搜素引擎

Jackey 其他 1,028 次浏览 没有评论

新标签页

修改文件:chrome/browser/ui/browser_tabstrip.cc

找到源码:

NavigateParams params(browser, url.is_empty() ? browser->GetNewTabURL() : url,
                        ui::PAGE_TRANSITION_TYPED);

修改为:

NavigateParams params(browser, url.is_empty() ? browser->GetNewTabURLBaidu() : url,
                        ui::PAGE_TRANSITION_TYPED);

修改文件:chrome/browser/ui/browser.cc

找到源码:

GURL Browser::GetNewTabURL() const {
  if (app_controller_)
    return app_controller_->GetAppLaunchURL();
  return GURL(chrome::kChromeUINewTabURL);
}

在其下方添加:

GURL Browser::GetNewTabURLBaidu() const {
  if (app_controller_)
    return app_controller_->GetAppLaunchURL();
  return GURL(chrome::kChromeUINewTabURLBaidu);
}

修改文件:chrome/common/webui_url_constants.cc

找到源码:

const char kChromeUINewTabURL[] = "chrome://newtab/";

在其下方添加:

const char kChromeUINewTabURLBaidu[] = "https://www.baidu.com";

修改文件:chrome/common/webui_url_constants.h

找到源码:

extern const char kChromeUINewTabURL[];

在其下方添加:

extern const char kChromeUINewTabURLBaidu[];

默认搜索引擎

找到文件:components/search_engines/templates_url_prepopulate_data_cc

找到源码:

// China
const PrepopulatedEngine* const engines_CN[] = {
    &baidu,
    &sogou,
    &google,
    &so_360,
    &bing,
};

如果需要添加默认搜索引擎,需要修改文件:components/search_engines/prepopulated_engines.json

根据示例添加相关配置

 

初次修改尝试,以上只做记录!

chromium UI 修改

http://www.chromium.org/developers/webui

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Go